diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/items/qsgcanvas.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/items/qsgcanvas.cpp b/src/declarative/items/qsgcanvas.cpp index 15d301a228..895cc16299 100644 --- a/src/declarative/items/qsgcanvas.cpp +++ b/src/declarative/items/qsgcanvas.cpp @@ -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) |