Remove macro to free locale

This functionality can now be handled automatically because locale can
now be freed seaparately from obs_module_unload with
obs_module_free_locale, which is called automatically when the module is
being freed.
This commit is contained in:
jp9000
2014-07-27 12:44:28 -07:00
parent f0ac19abba
commit 892fdea83e
16 changed files with 4 additions and 72 deletions

View File

@@ -77,11 +77,12 @@ MODULE_EXPORT void obs_module_free_locale(void);
obs_module_lookup = obs_module_load_locale( \
obs_current_module(), \
default_locale, locale); \
} \
void obs_module_free_locale(void) \
{ \
text_lookup_destroy(obs_module_lookup); \
}
#define OBS_MODULE_FREE_DEFAULT_LOCALE() \
text_lookup_destroy(obs_module_lookup)
/** Helper function for looking up locale if default locale handler was used */
extern const char *obs_module_text(const char *lookup_string);