pidgin: 0b5c5979: Fix incorrect freeing in my previous com...

datallah at pidgin.im datallah at pidgin.im
Sat May 3 15:25:43 EDT 2008


-----------------------------------------------------------------
Revision: 0b5c597928c61176ae2b63d001a9dcb644b1279e
Ancestor: 8d3ea174f97cdd8fa6752235c89ad34e18ee6a3a
Author: datallah at pidgin.im
Date: 2008-05-03T19:22:02
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0b5c597928c61176ae2b63d001a9dcb644b1279e

Modified files:
        libpurple/protocols/msn/contact.c

ChangeLog: 

Fix incorrect freeing in my previous commit.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/contact.c	75a4c77646a13a3be3a18552dae32844f34645be
+++ libpurple/protocols/msn/contact.c	afe1017912a48bc32607d7a5f3666da2c73dd06d
@@ -495,6 +495,7 @@ msn_parse_addressbook_mobile(xmlnode *co
 					xmlnode *messenger_enabled;
 					char *is_messenger_enabled = NULL;
 
+					g_free(mobile_number);
 					mobile_number = xmlnode_get_data(number);
 
 					if (mobile_number &&
@@ -503,7 +504,6 @@ msn_parse_addressbook_mobile(xmlnode *co
 							&& !strcmp(is_messenger_enabled, "true"))
 						mobile = TRUE;
 
-					g_free(mobile_number);
 					g_free(is_messenger_enabled);
 				}
 			}


More information about the Commits mailing list