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:
parent
684a9b1a56
commit
4e8f0c90b5
@ -207,8 +207,12 @@ prefs_close(void)
|
|||||||
{
|
{
|
||||||
autocomplete_free(boolean_choice_ac);
|
autocomplete_free(boolean_choice_ac);
|
||||||
autocomplete_free(room_trigger_ac);
|
autocomplete_free(room_trigger_ac);
|
||||||
|
|
||||||
g_key_file_free(prefs);
|
g_key_file_free(prefs);
|
||||||
prefs = NULL;
|
prefs = NULL;
|
||||||
|
|
||||||
|
free(prefs_loc);
|
||||||
|
prefs_loc = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
char*
|
char*
|
||||||
|
Loading…
Reference in New Issue
Block a user