mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-05 23:26:13 -05:00
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.
This commit is contained in:
@@ -577,6 +577,8 @@ void OBSBasic::RemoveSceneItem(OBSSceneItem item)
|
||||
obs_source_t source = obs_sceneitem_getsource(item);
|
||||
|
||||
int scenes = sourceSceneRefs[source] - 1;
|
||||
sourceSceneRefs[source] = scenes;
|
||||
|
||||
if (scenes == 0) {
|
||||
obs_source_remove(source);
|
||||
sourceSceneRefs.erase(source);
|
||||
|
||||
Reference in New Issue
Block a user