# HG changeset patch # User Kevin Stange # Date 1192763158 0 # Node ID 87c9d114864b3068ee80496f05ec10838369baff # Parent 1054e35acf65694d787c23dc6ef785c7ac1525ce Fix a warning diff -r 1054e35acf65 -r 87c9d114864b libpurple/protocols/myspace/user.c --- a/libpurple/protocols/myspace/user.c Fri Oct 19 03:03:45 2007 +0000 +++ b/libpurple/protocols/myspace/user.c Fri Oct 19 03:05:58 2007 +0000 @@ -203,6 +203,8 @@ /* 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 @@ return; } - const gchar *previous_url; - g_free(user->image_url); user->image_url = value_str;