mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-24 08:20:42 -04:00
Merge pull request #3394 from cg2121/fix-leak
UI: Fix memory leak when dropping files
This commit is contained in:
@@ -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