From f887a35c0cd550a3c635630da2bd83bb7400b957 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 14 Feb 2016 01:59:53 +0000 Subject: [PATCH] Fixed memory deallocations --- src/command/commands.c | 4 +++- src/ui/rosterwin.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/command/commands.c b/src/command/commands.c index 6a9972b6..ee2e9c83 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -154,7 +154,9 @@ cmd_execute_alias(ProfWin *window, const char *const inp, gboolean *ran) free(alias); if (value) { *ran = TRUE; - return cmd_process_input(window, value); + gboolean result = cmd_process_input(window, value); + prefs_free_string(value); + return result; } *ran = FALSE; diff --git a/src/ui/rosterwin.c b/src/ui/rosterwin.c index 964b006c..7e9009b1 100644 --- a/src/ui/rosterwin.c +++ b/src/ui/rosterwin.c @@ -759,6 +759,7 @@ _rosterwin_room(ProfLayoutSplit *layout, ProfMucWin *mucwin) } else { g_string_append(msg, mucwin->roomjid); } + prefs_free_string(roombypref); if ((g_strcmp0(unreadpos, "after") == 0) && mucwin->unread > 0) { g_string_append_printf(msg, " (%d)", mucwin->unread); }