diff src/gtkconv.c @ 7125:208cb260d7a7

[gaim-migrate @ 7692] as long as we're pissing off plugin developers... committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 02 Oct 2003 05:26:40 +0000
parents bf630f7dfdcd
children 80a000885b2c
line wrap: on
line diff
--- a/src/gtkconv.c	Thu Oct 02 04:56:25 2003 +0000
+++ b/src/gtkconv.c	Thu Oct 02 05:26:40 2003 +0000
@@ -5274,11 +5274,9 @@
 
 	if((buddy = gaim_find_buddy(gaim_conversation_get_account(conv),
 					gaim_conversation_get_name(conv))) != NULL) {
-		char *file = gaim_buddy_get_setting(buddy, "buddy_icon");
-		if(file) {
+		const char *file;
+		if((file = gaim_buddy_get_setting(buddy, "buddy_icon")))
 			gtkconv->u.im->anim = gdk_pixbuf_animation_new_from_file(file, &err);
-			g_free(file);
-		}
 	}
 	else
 	{