pidgin: 10aaf446: Plug a small leak.

datallah at pidgin.im datallah at pidgin.im
Wed May 28 01:25:52 EDT 2008


-----------------------------------------------------------------
Revision: 10aaf4464726a309faffd1e825c161d01d29340c
Ancestor: 1182d9990ec20b5330e5b932c92849461a325d7e
Author: datallah at pidgin.im
Date: 2008-05-28T05:20:54
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/10aaf4464726a309faffd1e825c161d01d29340c

Modified files:
        libpurple/smiley.c

ChangeLog: 

Plug a small leak.

-------------- next part --------------
============================================================
--- libpurple/smiley.c	d1e3ba9688f482d1e5c4c30a7872a16400aeed00
+++ libpurple/smiley.c	bd10b1ca0899b314a83d2da4e81a87b850649f98
@@ -641,10 +641,9 @@ purple_smiley_set_data_impl(PurpleSmiley
 	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);
 }
 
 


More information about the Commits mailing list