aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2011-06-22 18:12:29 +1000
committerAaron Kennedy <aaron.kennedy@nokia.com>2011-06-22 18:12:29 +1000
commit0d1fc01c50a866d4fbdbbc28adaf110850f77e3c (patch)
treef63c57987a3e0d0ba21baeff157e423caa75ede8
parent430ec8741e6c42a9f618b7d5246838bd50edd292 (diff)
parent26a18e5d03310dc69bfe97bac1ff512b3d62c475 (diff)
Merge branch 'qtquick2' of scm.dev.nokia.troll.no:qt/qtdeclarative-staging into v8
-rw-r--r--src/declarative/items/qsgcanvas.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/declarative/items/qsgcanvas.cpp b/src/declarative/items/qsgcanvas.cpp
index 0500b752c7..97d643dae6 100644
--- a/src/declarative/items/qsgcanvas.cpp
+++ b/src/declarative/items/qsgcanvas.cpp
@@ -2316,6 +2316,13 @@ void QSGCanvasRenderThread::stopRenderThread()
}
unlockInGui();
+
+#ifdef THREAD_DEBUG
+ printf("GUI: waiting for render thread to terminate..\n");
+#endif
+ // Actually wait for the thread to terminate. Otherwise we can delete it
+ // too early and crash.
+ QThread::wait();
}