im.pidgin.pidgin: dc8601b9969978380bddb7a1338085765b9108b6
kstange at pidgin.im
kstange at pidgin.im
Thu Oct 18 23:25:47 EDT 2007
-----------------------------------------------------------------
Revision: dc8601b9969978380bddb7a1338085765b9108b6
Ancestor: d92104c7d4ca74830b02d92c7af33d3445b2e581
Author: kstange at pidgin.im
Date: 2007-10-19T03:05:58
Branch: im.pidgin.pidgin
Modified files:
libpurple/protocols/myspace/user.c
ChangeLog:
Fix a warning
-------------- next part --------------
============================================================
--- libpurple/protocols/myspace/user.c 95316bf89e8f7e2f818182d35805f65cf0039717
+++ libpurple/protocols/myspace/user.c 827ea359f605d2f13f30f8392e63730ede6f62cb
@@ -203,6 +203,8 @@ msim_store_user_info_each(const gchar *k
/* Ignore because PurpleBuddy knows this already */
g_free(value_str);
} else if (g_str_equal(key_str, "ImageURL") || g_str_equal(key_str, "AvatarURL")) {
+ const gchar *previous_url;
+
if (user->temporary_user) {
/* This user will be destroyed soon; don't try to look up its image or avatar,
* since that won't return immediately and we will end up accessing freed data.
@@ -211,8 +213,6 @@ msim_store_user_info_each(const gchar *k
return;
}
- const gchar *previous_url;
-
g_free(user->image_url);
user->image_url = value_str;
More information about the Commits
mailing list