1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Fix multiple memory leaks related to rosterwin_roster()

There are multiple paths which lead to rosterwin_roster(). The function
doesn't free list returned by wins_get_private_chats().
This commit is contained in:
Dmitry Podgorny 2020-04-06 13:30:25 +03:00
parent ba291a03f4
commit 42b6d78a70

View File

@ -172,6 +172,7 @@ rosterwin_roster(void)
_rosterwin_private_chats(layout, orphaned_privchats);
}
prefs_free_string(privpref);
g_list_free(privchats);
g_list_free(orphaned_privchats);
}