mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Fix memory leaks in _rosterwin_resources()
This commit is contained in:
parent
401ebce84e
commit
aa4faf6075
@ -619,6 +619,7 @@ _rosterwin_resources(ProfLayoutSplit *layout, PContact contact, int current_inde
|
|||||||
|
|
||||||
wattron(layout->subwin, theme_attrs(presence_colour));
|
wattron(layout->subwin, theme_attrs(presence_colour));
|
||||||
win_sub_print(layout->subwin, unreadmsg->str, FALSE, wrap, current_indent);
|
win_sub_print(layout->subwin, unreadmsg->str, FALSE, wrap, current_indent);
|
||||||
|
g_string_free(unreadmsg, TRUE);
|
||||||
wattroff(layout->subwin, theme_attrs(presence_colour));
|
wattroff(layout->subwin, theme_attrs(presence_colour));
|
||||||
}
|
}
|
||||||
prefs_free_string(unreadpos);
|
prefs_free_string(unreadpos);
|
||||||
@ -635,6 +636,7 @@ _rosterwin_resources(ProfLayoutSplit *layout, PContact contact, int current_inde
|
|||||||
|
|
||||||
wattron(layout->subwin, theme_attrs(presence_colour));
|
wattron(layout->subwin, theme_attrs(presence_colour));
|
||||||
win_sub_print(layout->subwin, unreadmsg->str, FALSE, wrap, current_indent);
|
win_sub_print(layout->subwin, unreadmsg->str, FALSE, wrap, current_indent);
|
||||||
|
g_string_free(unreadmsg, TRUE);
|
||||||
wattroff(layout->subwin, theme_attrs(presence_colour));
|
wattroff(layout->subwin, theme_attrs(presence_colour));
|
||||||
}
|
}
|
||||||
prefs_free_string(unreadpos);
|
prefs_free_string(unreadpos);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user