path: root/src/plugins/platforms/ios
diff options
authorRichard Moe Gustavsen <>2012-12-11 12:07:05 +0100
committerTor Arne Vestbø <>2013-02-27 23:55:52 +0100
commitd07bd1b22f6da2fcf961618b59f10f59d0a95d16 (patch)
treef7fdb24d26a00df32d7898525f30d0191375baee /src/plugins/platforms/ios
parent509697adc30f858ee3483c2b74e292c60b75ba9a (diff)
iOS: remove the view from the view hierarchy upon destruction
We need to remove the view that backs QWindow when the window is destroyed. Otherwise the view will still be visible on screen, but now with a dangling QWindow pointer. This fixes a crash that happens when closing dialogs. Change-Id: I9053c83c6db80a39f4f71a63993cc7ae73fc4196 Reviewed-by: Tor Arne Vestbø <>
Diffstat (limited to 'src/plugins/platforms/ios')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/ b/src/plugins/platforms/ios/
index 90734e58e8..871a046c71 100644
--- a/src/plugins/platforms/ios/
+++ b/src/plugins/platforms/ios/
@@ -221,6 +221,7 @@ QIOSWindow::~QIOSWindow()
if (m_glData.depthRenderbuffer)
glDeleteRenderbuffers(1, &m_glData.depthRenderbuffer);
+ [m_view removeFromSuperview];
[m_view release];