Delete the rendering thread when shutting down
authorGunnar Sletta <gunnar.sletta@nokia.com>
Wed, 11 May 2011 10:54:41 +0000 (12:54 +0200)
committerGunnar Sletta <gunnar.sletta@nokia.com>
Wed, 11 May 2011 11:16:01 +0000 (13:16 +0200)
src/declarative/items/qsgcanvas.cpp

index 15d301a..895cc16 100644 (file)
@@ -922,8 +922,10 @@ QSGCanvas::~QSGCanvas()
 {
     Q_D(QSGCanvas);
 
-    if (d->threadedRendering)
+    if (d->threadedRendering) {
         d->stopRenderingThread();
+        delete d->thread;
+    }
 
     // ### should we change ~QSGItem to handle this better?
     // manually cleanup for the root item (item destructor only handles these when an item is parented)