Skip to content

Commit

Permalink
Delete the rendering thread when shutting down
Browse files Browse the repository at this point in the history
  • Loading branch information
Gunnar Sletta committed May 11, 2011
1 parent 97e553d commit 53c6fb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/declarative/items/qsgcanvas.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 53c6fb7

Please sign in to comment.