Browse Source

libobs: Fix unnecessary duplication

Original code makes duplicated item and bad memory

Closes obsproject/obs-studio#2837
张昆 5 years ago
parent
commit
eb44e05169
1 changed files with 0 additions and 1 deletions
  1. 0 1
      libobs/obs.c

+ 0 - 1
libobs/obs.c

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