Browse Source

libobs: Clear module variable in case module reloaded

Closes obsproject/obs-studio#1957
wang-bin 6 years ago
parent
commit
5b6ee6e66b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libobs/obs-module.h

+ 1 - 0
libobs/obs-module.h

@@ -129,6 +129,7 @@ MODULE_EXPORT void obs_module_free_locale(void);
 	void obs_module_free_locale(void)                               \
 	{                                                               \
 		text_lookup_destroy(obs_module_lookup);                 \
+		obs_module_lookup = NULL; 								\
 	}
 
 /** Helper function for looking up locale if default locale handler was used */