UI: Fix possible source reference leakage

This would fail to release the reference if the 'direct' parameter was
used.

Closes jp9000/obs-studio#1116
This commit is contained in:
jp9000 2018-01-04 18:43:12 -08:00
parent 2741337755
commit cd1399f01a

View File

@ -341,7 +341,7 @@ void OBSBasic::TransitionToScene(OBSSource source, bool force, bool direct,
TransitionFullyStopped();
}
if (usingPreviewProgram && sceneDuplicationMode && !direct)
if (usingPreviewProgram && sceneDuplicationMode)
obs_scene_release(scene);
}