diff --git a/src/ui/rosterwin.c b/src/ui/rosterwin.c index 1b4442f2..1d295053 100644 --- a/src/ui/rosterwin.c +++ b/src/ui/rosterwin.c @@ -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);