mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
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:
parent
6634415e32
commit
f81adbd856
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue