Don't manually delete QPlatformScreen

Change-Id: Ic0cdb08c948a0fd9a4da2d76fe321e72e1c478d5
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
bb10
Kai Uwe Broulik 2015-06-05 13:43:41 +02:00
parent 8046a574d2
commit b38615c7e4
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}