pidgin: 4b5ba819: Call msim_user_free here to make sure we...

markdoliner at pidgin.im markdoliner at pidgin.im
Thu Jan 14 14:50:36 EST 2010


-----------------------------------------------------------------
Revision: 4b5ba819f03c9c79eb7d9a9cce48dbb028bdd9e5
Ancestor: d7909ce8d5285015a34bc611f73634f689120d20
Author: markdoliner at pidgin.im
Date: 2010-01-14T19:49:03
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4b5ba819f03c9c79eb7d9a9cce48dbb028bdd9e5

Modified files:
        libpurple/protocols/myspace/myspace.c

ChangeLog: 

Call msim_user_free here to make sure we cancel url_data and free one or
two other fields that could be set.

-------------- next part --------------
============================================================
--- libpurple/protocols/myspace/myspace.c	b4e51e219bdd6a16eec98f3825d8f8774c9bd407
+++ libpurple/protocols/myspace/myspace.c	ec7093319f8188f3a234ea37d53ee67ec7d214b5
@@ -2439,16 +2439,8 @@ msim_get_info_cb(MsimSession *session, c
 
 	purple_notify_user_info_destroy(user_info);
 
-	if (user->temporary_user) {
-		g_free(user->client_info);
-		g_free(user->gender);
-		g_free(user->location);
-		g_free(user->headline);
-		g_free(user->display_name);
-		g_free(user->username);
-		g_free(user->image_url);
-		g_free(user);
-	}
+	if (user->temporary_user)
+		msim_user_free(user);
 	g_free(username);
 }
 


More information about the Commits mailing list