From aa4faf6075c230e6740af7278ac9989da05174f4 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Thu, 9 Apr 2020 15:17:34 +0300 Subject: Fix memory leaks in _rosterwin_resources() --- src/ui/rosterwin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/rosterwin.c b/src/ui/rosterwin.c index 9615db22..58d0bdf9 100644 --- a/src/ui/rosterwin.c +++ b/src/ui/rosterwin.c @@ -619,6 +619,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); @@ -635,6 +636,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); -- cgit 1.4.1-2-gfad0