comparison libpurple/protocols/myspace/user.c @ 28964:86ee7772936f

Remove duplicate code
author Mark Doliner <mark@kingant.net>
date Thu, 04 Feb 2010 02:18:37 +0000
parents 94a88e5bd3fc
children e137c1fc216a 422889fb57e0
comparison
equal deleted inserted replaced
28963:94a88e5bd3fc 28964:86ee7772936f
350 */ 350 */
351 g_free(value_str); 351 g_free(value_str);
352 return; 352 return;
353 } 353 }
354 354
355 if (user->temporary_user) {
356 /* This user will be destroyed soon; don't try to look up its image or avatar,
357 * since that won't return immediately and we will end up accessing freed data.
358 */
359 g_free(value_str);
360 return;
361 }
362
363 g_free(user->image_url); 355 g_free(user->image_url);
364 356
365 user->image_url = value_str; 357 user->image_url = value_str;
366 358
367 /* Instead of showing 'no photo' picture, show nothing. */ 359 /* Instead of showing 'no photo' picture, show nothing. */