[api] Setting global objects to NULL on teardown
This commit is contained in:
@@ -546,4 +546,5 @@ void address_dictionary_module_teardown(void) {
|
|||||||
if (address_dict != NULL) {
|
if (address_dict != NULL) {
|
||||||
address_dictionary_destroy(address_dict);
|
address_dictionary_destroy(address_dict);
|
||||||
}
|
}
|
||||||
|
address_dict = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1919,5 +1919,6 @@ bool transliteration_module_setup(char *filename) {
|
|||||||
|
|
||||||
void transliteration_module_teardown(void) {
|
void transliteration_module_teardown(void) {
|
||||||
transliteration_table_destroy();
|
transliteration_table_destroy();
|
||||||
|
trans_table = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user