From 2eb8edb5983f7aeff29e45afc4c00ab7c36b0faf Mon Sep 17 00:00:00 2001 From: Rafael Roquetto Date: Fri, 15 Jun 2012 14:27:24 +0200 Subject: [Blackberry] Fix deletion of dangling pointers This bug affects only Qt 4.8 series. Task-number: QTBUG-25796 Change-Id: I42c9bf5e8778e9bac2bb10c8e5888e02a61f72d7 Reviewed-by: Kevin Krammer Reviewed-by: Giuseppe D'Angelo Reviewed-by: Andreas Holzammer --- src/plugins/platforms/blackberry/qbbintegration.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/platforms/blackberry/qbbintegration.cpp b/src/plugins/platforms/blackberry/qbbintegration.cpp index 6283bb1..bfd1eb8 100644 --- a/src/plugins/platforms/blackberry/qbbintegration.cpp +++ b/src/plugins/platforms/blackberry/qbbintegration.cpp @@ -178,8 +178,10 @@ QBBIntegration::~QBBIntegration() delete mLocaleThread; #endif +#if !defined(Q_OS_BLACKBERRY) // stop/destroy event thread delete mScreenEventThread; +#endif // stop/destroy navigator event handling classes delete mNavigatorEventNotifier; @@ -209,7 +211,6 @@ QBBIntegration::~QBBIntegration() QBBGLContext::shutdown(); #if defined(Q_OS_BLACKBERRY) - delete mBpsEventFilter; bps_shutdown(); #endif -- cgit v0.12