Commit e8802bdd authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

WorkflowRenderer: Fix crash when closing if no rendering happened

parent 18e413af
......@@ -278,11 +278,13 @@ WorkflowRenderer::internalPlayPause( bool forcePause )
void
WorkflowRenderer::stop()
{
m_isRendering = false;
m_paused = false;
m_stopping = true;
m_mainWorkflow->stopFrameComputing();
m_sourceRenderer->stop();
if ( m_sourceRenderer != NULL )
m_sourceRenderer->stop();
m_mainWorkflow->stop();
delete[] m_silencedAudioBuffer;
m_silencedAudioBuffer = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment