mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -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:
parent
ba291a03f4
commit
42b6d78a70
@ -172,6 +172,7 @@ rosterwin_roster(void)
|
|||||||
_rosterwin_private_chats(layout, orphaned_privchats);
|
_rosterwin_private_chats(layout, orphaned_privchats);
|
||||||
}
|
}
|
||||||
prefs_free_string(privpref);
|
prefs_free_string(privpref);
|
||||||
|
g_list_free(privchats);
|
||||||
g_list_free(orphaned_privchats);
|
g_list_free(orphaned_privchats);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user