Skip to content

Commit

Permalink
ScriptProcessorDialog: fix an error on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
YomikoR committed Nov 12, 2021
1 parent d51efa1 commit 9f95d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vsedit/src/vapoursynth/vs_script_processor_dialog.cpp
Expand Up @@ -235,11 +235,11 @@ void VSScriptProcessorDialog::stopAndCleanUp()

void VSScriptProcessorDialog::clearFramesCache()
{
Q_ASSERT(m_cpVSAPI);
for(int n = 0; n < 10; ++n)
{
if(m_framesCache[n].empty())
continue;
Q_ASSERT(m_cpVSAPI);
for(Frame & frame : m_framesCache[n])
{
m_cpVSAPI->freeFrame(frame.cpOutputFrameRef);
Expand Down

0 comments on commit 9f95d65

Please sign in to comment.