about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-02-14 01:59:53 +0000
committerJames Booth <boothj5@gmail.com>2016-02-14 01:59:53 +0000
commitf887a35c0cd550a3c635630da2bd83bb7400b957 (patch)
tree686077122ff4e599ae1bc99ad715ae11d4a57ab0 /src
parentd7b331874a1a98ad97ca9f331d4eab5d81b29b13 (diff)
downloadprofani-tty-f887a35c0cd550a3c635630da2bd83bb7400b957.tar.gz
Fixed memory deallocations
Diffstat (limited to 'src')
-rw-r--r--src/command/commands.c4
-rw-r--r--src/ui/rosterwin.c1
2 files changed, 4 insertions, 1 deletions
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);
     }