diff options
author | Kai Uwe Broulik <kde@privat.broulik.de> | 2015-06-05 13:43:41 +0200 |
---|---|---|
committer | Kai Uwe Broulik <kde@privat.broulik.de> | 2015-06-09 09:14:30 +0000 |
commit | b38615c7e4fbaea198503a8fde3224066a0ae616 (patch) | |
tree | c36033fadc8d2e9c283673479b0c77c683cddc7e /src/plugins/platforms/qnx | |
parent | 8046a574d27b71ac9540b6cd3c029c2a83dd731e (diff) |
Don't manually delete QPlatformScreen
Change-Id: Ic0cdb08c948a0fd9a4da2d76fe321e72e1c478d5
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx')
-rw-r--r-- | src/plugins/platforms/qnx/qqnxintegration.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/platforms/qnx/qqnxintegration.cpp b/src/plugins/platforms/qnx/qqnxintegration.cpp index 1bcf8036bb..071bab7920 100644 --- a/src/plugins/platforms/qnx/qqnxintegration.cpp +++ b/src/plugins/platforms/qnx/qqnxintegration.cpp @@ -560,7 +560,9 @@ void QQnxIntegration::removeDisplay(QQnxScreen *screen) void QQnxIntegration::destroyDisplays() { qIntegrationDebug() << Q_FUNC_INFO; - qDeleteAll(m_screens); + Q_FOREACH (QQnxScreen *screen, m_screens) { + QPlatformIntegration::destroyScreen(screen); + } m_screens.clear(); } |