diff src/buddyicon.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 1c8830db0189
line wrap: on
line diff
--- a/src/buddyicon.c	Thu Oct 02 04:56:25 2003 +0000
+++ b/src/buddyicon.c	Thu Oct 02 05:26:40 2003 +0000
@@ -164,7 +164,7 @@
 	const char *dirname;
 	char *random;
 	char *filename;
-	char *old_icon;
+	const char *old_icon;
 	size_t len;
 	FILE *file = NULL;
 
@@ -202,10 +202,7 @@
 	}
 
 	if (old_icon != NULL)
-	{
 		unlink(old_icon);
-		g_free(old_icon);
-	}
 
 	gaim_buddy_set_setting(buddy, "buddy_icon", filename);
 	gaim_blist_save();