mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 21:13:04 +02:00
Merge pull request #3394 from cg2121/fix-leak
UI: Fix memory leak when dropping files
This commit is contained in:
commit
44bdf60d06
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user