1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Fix preferences memory leak

Memory leak detected through unit tests.

Regards https://github.com/profanity-im/profanity/issues/1019
This commit is contained in:
Michael Vetter 2019-10-05 20:45:07 +02:00
parent 684a9b1a56
commit 4e8f0c90b5

View File

@ -207,8 +207,12 @@ prefs_close(void)
{
autocomplete_free(boolean_choice_ac);
autocomplete_free(room_trigger_ac);
g_key_file_free(prefs);
prefs = NULL;
free(prefs_loc);
prefs_loc = NULL;
}
char*