changeset 24545:c687fd9c379e

Small leak fix.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 06 Dec 2008 06:02:42 +0000
parents 97af4329f786
children 918738a0bba4
files libpurple/protocols/null/nullprpl.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/null/nullprpl.c	Sat Dec 06 05:50:44 2008 +0000
+++ b/libpurple/protocols/null/nullprpl.c	Sat Dec 06 06:02:42 2008 +0000
@@ -275,9 +275,10 @@
     /* they're logged in */
     PurplePresence *presence = purple_buddy_get_presence(buddy);
     PurpleStatus *status = purple_presence_get_active_status(presence);
-    const char *msg = nullprpl_status_text(buddy);
+    char *msg = nullprpl_status_text(buddy);
     purple_notify_user_info_add_pair(info, purple_status_get_name(status),
                                      msg);
+    g_free(msg);
 
     if (full) {
       const char *user_info = purple_account_get_user_info(gc->account);