summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Atallah <datallah@pidgin.im>2008-05-28 05:20:54 +0000
committerDaniel Atallah <datallah@pidgin.im>2008-05-28 05:20:54 +0000
commit6b70d4ab457b89739eba3e76c894f0cb95123d49 (patch)
treecb4a6082024361d9f03c588e199681d76ea57080
parentf5c29c0cee1e733dd29c72a57b8e3b9f230ab89c (diff)
downloadpidgin-6b70d4ab457b89739eba3e76c894f0cb95123d49.tar.gz
Plug a small leak.
-rw-r--r--libpurple/smiley.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libpurple/smiley.c b/libpurple/smiley.c
index 5288dc9ec9..e3dd624cc9 100644
--- a/libpurple/smiley.c
+++ b/libpurple/smiley.c
@@ -641,10 +641,9 @@ purple_smiley_set_data_impl(PurpleSmiley *smiley, guchar *smiley_data,
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);
}