Skip to content

Commit

Permalink
Fix a segfault when closing an uninitialized OffscreenQuickView
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Dumusc committed May 8, 2017
1 parent 438d594 commit 439e2a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deflect/qt/OffscreenQuickView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ OffscreenQuickView::~OffscreenQuickView()
killTimer(_stopRenderingDelayTimer);
_stopRenderingDelayTimer = 0;

_quickRenderer->stop();
if (_quickRenderer)
_quickRenderer->stop();

if (_quickRendererThread)
{
_quickRendererThread->quit();
Expand Down

0 comments on commit 439e2a3

Please sign in to comment.