Delete the screen event handler after its last user.

Change-Id: I2e3c6d08c0dcdd4b954570e9a2198c190c8fffd2
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
This commit is contained in:
Thomas McGuire 2012-04-02 12:03:46 +02:00 committed by Qt by Nokia
parent 772d748b95
commit 86bbb5d173

View File

@ -149,7 +149,6 @@ QQnxIntegration::~QQnxIntegration()
qDebug() << "QQnx: platform plugin shutdown begin";
#endif
delete m_screenEventHandler;
delete m_nativeInterface;
@ -170,6 +169,8 @@ QQnxIntegration::~QQnxIntegration()
// Stop/destroy navigator thread
delete m_navigatorEventHandler;
delete m_screenEventHandler;
// Destroy all displays
destroyDisplays();