changeset 29276:5a367a023195

Call msim_user_free here to make sure we cancel url_data and free one or two other fields that could be set.
author Mark Doliner <mark@kingant.net>
date Thu, 14 Jan 2010 19:49:03 +0000
parents abb85fc40ecf
children e2ea496f77be
files libpurple/protocols/myspace/myspace.c
diffstat 1 files changed, 2 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c	Thu Jan 14 01:46:17 2010 +0000
+++ b/libpurple/protocols/myspace/myspace.c	Thu Jan 14 19:49:03 2010 +0000
@@ -2439,16 +2439,8 @@
 
 	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);
 }