aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qquickcanvas.cpp
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2011-11-14 17:19:50 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-16 07:30:57 +0100
commit3ed359f5ada78c98865de6c3b22eaaa8ec46659b (patch)
tree4b051d2c0fd7e11dca031d627e0f0eb1675af83b /src/declarative/items/qquickcanvas.cpp
parent80615c3036e689061588a144339125b7fb8e66e5 (diff)
Fixed deferred deletion of objects in the render thread loop.
processEvents() does not process DeferredDelete events. Change-Id: Iee8491b7c63a26af8e36f777d872115ab1b64763 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/declarative/items/qquickcanvas.cpp')
-rw-r--r--src/declarative/items/qquickcanvas.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/items/qquickcanvas.cpp b/src/declarative/items/qquickcanvas.cpp
index 99ac9947c8..581d7f3541 100644
--- a/src/declarative/items/qquickcanvas.cpp
+++ b/src/declarative/items/qquickcanvas.cpp
@@ -2157,8 +2157,10 @@ void QQuickCanvasRenderThread::run()
unlock();
- // Process any "deleteLater" objects...
QCoreApplication::processEvents();
+
+ // Process any "deleteLater" objects...
+ QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete);
}
#ifdef THREAD_DEBUG