about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-09-09 21:29:18 +0100
committerJames Booth <boothj5@gmail.com>2014-09-09 21:29:18 +0100
commitc636134566a473563aaedca8d87999f2485b0b9f (patch)
tree1726a484f6986ceb32fde73a8a57a9f7ef583b84
parent6166d456e89c2561794da8f9b5e81823e8991f73 (diff)
parent273cddd66116ea498c03caed151ebb14787f7ee0 (diff)
downloadprofani-tty-c636134566a473563aaedca8d87999f2485b0b9f.tar.gz
Merge branch 'master' into roomconfig
-rw-r--r--src/ui/buffer.c1
-rw-r--r--src/ui/window.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/buffer.c b/src/ui/buffer.c
index e407681e..ab5af17d 100644
--- a/src/ui/buffer.c
+++ b/src/ui/buffer.c
@@ -118,5 +118,6 @@ _free_entry(ProfBuffEntry *entry)
     free(entry->message);
     free(entry->from);
     free(entry->date_fmt);
+    free(entry);
 }
 
diff --git a/src/ui/window.c b/src/ui/window.c
index dcbb56ba..6a1240e5 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -355,6 +355,7 @@ win_save_vprint(ProfWin *window, const char show_char, GTimeVal *tstamp,
     GString *fmt_msg = g_string_new(NULL);
     g_string_vprintf(fmt_msg, message, arg);
     win_save_print(window, show_char, tstamp, flags, attrs, from, fmt_msg->str);
+    g_string_free(fmt_msg, TRUE);
 }
 
 void