mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 13:04:54 -04:00
UI: Fix memory leak when dropping files
This fixes a memory leak when dropping files when the name is the same as other sources.
This commit is contained in:
1 parent
4aa6610bf4
commit
fd0872d630
1 file changed
+3
@@ -51,8 +51,11 @@ static string GenerateSourceName(const char *base)
|
||||
}
|
||||
|
||||
obs_source_t *source = obs_get_source_by_name(name.c_str());
|
||||
|
||||
if (!source)
|
||||
return name;
|
||||
else
|
||||
obs_source_release(source);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user