diff options
author | Daniel Atallah <datallah@pidgin.im> | 2008-05-28 05:20:54 +0000 |
---|---|---|
committer | Daniel Atallah <datallah@pidgin.im> | 2008-05-28 05:20:54 +0000 |
commit | 6b70d4ab457b89739eba3e76c894f0cb95123d49 (patch) | |
tree | cb4a6082024361d9f03c588e199681d76ea57080 | |
parent | f5c29c0cee1e733dd29c72a57b8e3b9f230ab89c (diff) | |
download | pidgin-6b70d4ab457b89739eba3e76c894f0cb95123d49.tar.gz |
Plug a small leak.
-rw-r--r-- | libpurple/smiley.c | 5 |
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); } |