pidgin: be9df40b: Small leak fix.

sadrul at pidgin.im sadrul at pidgin.im
Sat Dec 6 01:01:27 EST 2008


-----------------------------------------------------------------
Revision: be9df40b197dab92a74c4bf346f64e538f7f99e5
Ancestor: 2c458c6483c3529daf0952f1c16f3d0dd5830c85
Author: sadrul at pidgin.im
Date: 2008-12-06T06:02:42
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/be9df40b197dab92a74c4bf346f64e538f7f99e5

Modified files:
        libpurple/protocols/null/nullprpl.c

ChangeLog: 

Small leak fix.

-------------- next part --------------
============================================================
--- libpurple/protocols/null/nullprpl.c	46a8be055c34e2aa6c5318fb8943db45d753936b
+++ libpurple/protocols/null/nullprpl.c	9d14dffe44270ac50efbdbc633fe275ce510c13a
@@ -275,9 +275,10 @@ static void nullprpl_tooltip_text(Purple
     /* 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);


More information about the Commits mailing list