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

Fix memory leak in _rosterwin_resources()

This commit is contained in:
Dmitry Podgorny 2020-04-05 15:57:27 +03:00
parent 23d79e6eac
commit dc5ddb8ebe

View File

@ -562,6 +562,7 @@ _rosterwin_resources(ProfLayoutSplit *layout, PContact contact, int current_inde
wattron(layout->subwin, theme_attrs(presence_colour));
win_sub_print(layout->subwin, unreadmsg->str, FALSE, wrap, current_indent);
g_string_free(unreadmsg, TRUE);
wattroff(layout->subwin, theme_attrs(presence_colour));
}
prefs_free_string(unreadpos);