changeset 23231:90c7142de9d0

Plug a small leak.
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 28 May 2008 05:20:54 +0000
parents fda698fb2d1f
children 66a60f01e8a0
files libpurple/smiley.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/smiley.c	Wed May 28 05:12:08 2008 +0000
+++ b/libpurple/smiley.c	Wed May 28 05:20:54 2008 +0000
@@ -641,10 +641,9 @@
 	old_filename = purple_imgstore_get_filename(old_img);
 	new_filename = purple_imgstore_get_filename(smiley->img);
 
-	if (g_ascii_strcasecmp(old_filename, new_filename)) {
+	if (g_ascii_strcasecmp(old_filename, new_filename))
 		purple_smiley_data_unstore(old_filename);
-		purple_imgstore_unref(old_img);
-	}
+	purple_imgstore_unref(old_img);
 }