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

Fixed memory deallocations

This commit is contained in:
James Booth 2016-02-14 01:59:53 +00:00
parent d7b331874a
commit f887a35c0c
2 changed files with 4 additions and 1 deletions

View File

@ -154,7 +154,9 @@ cmd_execute_alias(ProfWin *window, const char *const inp, gboolean *ran)
free(alias); free(alias);
if (value) { if (value) {
*ran = TRUE; *ran = TRUE;
return cmd_process_input(window, value); gboolean result = cmd_process_input(window, value);
prefs_free_string(value);
return result;
} }
*ran = FALSE; *ran = FALSE;

View File

@ -759,6 +759,7 @@ _rosterwin_room(ProfLayoutSplit *layout, ProfMucWin *mucwin)
} else { } else {
g_string_append(msg, mucwin->roomjid); g_string_append(msg, mucwin->roomjid);
} }
prefs_free_string(roombypref);
if ((g_strcmp0(unreadpos, "after") == 0) && mucwin->unread > 0) { if ((g_strcmp0(unreadpos, "after") == 0) && mucwin->unread > 0) {
g_string_append_printf(msg, " (%d)", mucwin->unread); g_string_append_printf(msg, " (%d)", mucwin->unread);
} }