libobs: Fix unnecessary duplication

Original code makes duplicated item and bad memory

Closes obsproject/obs-studio#2837
This commit is contained in:
张昆 2020-04-30 16:47:40 +08:00 committed by jp9000
parent b0307391e9
commit eb44e05169

View file

@ -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)