From f2792a9cf0e5c628ba1481c47ee6b98524e6b87a Mon Sep 17 00:00:00 2001 From: Roger Maclean Date: Thu, 16 Jan 2014 15:56:58 -0500 Subject: QNX: Avoid crashing on exit when have a cover window QQnxScreen destructor was leaving the cover window to a reference to it leading to a crash when the cover window itself was destroyed. Change-Id: Id82097d54fea79b0b9ec1cef439bd704da9ca453 Reviewed-by: Kevin Krammer Reviewed-by: Bernd Weimer Reviewed-by: Fabian Bumberger Reviewed-by: Rafael Roquetto --- src/plugins/platforms/qnx/qqnxscreen.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/platforms/qnx/qqnxscreen.cpp') diff --git a/src/plugins/platforms/qnx/qqnxscreen.cpp b/src/plugins/platforms/qnx/qqnxscreen.cpp index 79a1a31eb4..8461e37e4d 100644 --- a/src/plugins/platforms/qnx/qqnxscreen.cpp +++ b/src/plugins/platforms/qnx/qqnxscreen.cpp @@ -200,6 +200,9 @@ QQnxScreen::~QQnxScreen() Q_FOREACH (QQnxWindow *childWindow, m_childWindows) childWindow->setScreen(0); + if (m_coverWindow) + m_coverWindow->setScreen(0); + delete m_cursor; } -- cgit v1.2.3