libobs: Fix bad source release placement

(This commit also modifies the UI)

The source release was being done in the wrong file.
This commit is contained in:
SuslikV
2018-01-04 20:36:11 -08:00
committed by jp9000
parent 6634415e32
commit f81adbd856
2 changed files with 2 additions and 3 deletions
+2 -1
View File
@@ -6149,8 +6149,9 @@ void OBSBasic::on_actionCopyFilters_triggered()
void OBSBasic::on_actionPasteFilters_triggered()
{
OBSSource source = obs_get_source_by_name(copyFiltersString);
OBSSceneItem sceneItem = GetCurrentSceneItem();
obs_source_release(source);
OBSSceneItem sceneItem = GetCurrentSceneItem();
OBSSource dstSource = obs_sceneitem_get_source(sceneItem);
if (source == dstSource)
-2
View File
@@ -430,8 +430,6 @@ void obs_source_copy_filters(obs_source_t *dst, obs_source_t *src)
duplicate_filters(dst, src, dst->context.private ?
OBS_SCENE_DUP_PRIVATE_COPY :
OBS_SCENE_DUP_COPY);
obs_source_release(src);
}
obs_source_t *obs_source_duplicate(obs_source_t *source,