Basic UI: Fix scene/source reference counter

The 'how many scenes is this source in' reference counter used
in the basic UI was not being decremented.
master
jp9000 2014-05-11 23:20:45 -07:00
parent 29c74efba6
commit 7b0adc9b24
1 changed files with 2 additions and 0 deletions

View File

@ -577,6 +577,8 @@ void OBSBasic::RemoveSceneItem(OBSSceneItem item)
obs_source_t source = obs_sceneitem_getsource(item); obs_source_t source = obs_sceneitem_getsource(item);
int scenes = sourceSceneRefs[source] - 1; int scenes = sourceSceneRefs[source] - 1;
sourceSceneRefs[source] = scenes;
if (scenes == 0) { if (scenes == 0) {
obs_source_remove(source); obs_source_remove(source);
sourceSceneRefs.erase(source); sourceSceneRefs.erase(source);