about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2013-08-03 14:38:38 +0300
committerDmitry Podgorny <pasis.ua@gmail.com>2013-08-03 14:38:38 +0300
commita6e66cc57106402944445fc709625dcf88785a5b (patch)
tree3b18a2ba806573942ae9732c16ba984d8d2ac492 /src/ui
parent28ec3334cf616c275440546269083fab44a07a60 (diff)
downloadprofani-tty-a6e66cc57106402944445fc709625dcf88785a5b.tar.gz
fixed memory leaks
Also avoided several NULL pointer dereferences.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/notifier.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/notifier.c b/src/ui/notifier.c
index f43c8c25..403c215e 100644
--- a/src/ui/notifier.c
+++ b/src/ui/notifier.c
@@ -80,7 +80,7 @@ notify_invite(const char * const from, const char * const room,
 
     _notify(message->str, 10000, "Incoming message");
 
-    g_string_free(message, FALSE);
+    g_string_free(message, TRUE);
 }
 
 void
@@ -102,7 +102,7 @@ notify_room_message(const char * const handle, const char * const room, int win)
 
     _notify(text->str, 10000, "incoming message");
 
-    g_string_free(text, FALSE);
+    g_string_free(text, TRUE);
 }
 
 void
@@ -111,7 +111,7 @@ notify_subscription(const char * const from)
     GString *message = g_string_new("Subscription request: \n");
     g_string_append(message, from);
     _notify(message->str, 10000, "Incomming message");
-    g_string_free(message, FALSE);
+    g_string_free(message, TRUE);
 }
 
 void