mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
libobs: Fix unnecessary duplication
Original code makes duplicated item and bad memory Closes obsproject/obs-studio#2837
This commit is contained in:
parent
b0307391e9
commit
eb44e05169
|
@ -907,7 +907,6 @@ void obs_add_data_path(const char *path)
|
|||
{
|
||||
struct dstr *new_path = da_push_back_new(core_module_paths);
|
||||
dstr_init_copy(new_path, path);
|
||||
da_push_back(core_module_paths, new_path);
|
||||
}
|
||||
|
||||
bool obs_remove_data_path(const char *path)
|
||||
|
|
Loading…
Reference in a new issue