im.pidgin.pidgin.custom_smiley: ed5bd8463124599c850e332cc9ce5425149c59b0

sadrul at pidgin.im sadrul at pidgin.im
Tue Feb 19 15:06:10 EST 2008


-----------------------------------------------------------------
Revision: ed5bd8463124599c850e332cc9ce5425149c59b0
Ancestor: af58ab071808e2633ff0c7ca5c9b45c4c90b3974
Author: sadrul at pidgin.im
Date: 2008-02-19T19:46:49
Branch: im.pidgin.pidgin.custom_smiley
URL: http://d.pidgin.im/viewmtn/revision/info/ed5bd8463124599c850e332cc9ce5425149c59b0

Modified files:
        libpurple/util.c

ChangeLog: 

Plug a leak.

-------------- next part --------------
============================================================
--- libpurple/util.c	0b66daf2305037d8f954a8abecdda663267a881c
+++ libpurple/util.c	cbc46b37d4db55fa7e7ddc6542f1ef7354451df3
@@ -2915,9 +2915,11 @@ purple_util_get_image_filename(gconstpoi
 purple_util_get_image_filename(gconstpointer image_data, size_t image_len)
 {
 	/* Return the filename */
-	return g_strdup_printf("%s.%s", 
-	                       purple_util_get_image_checksum(image_data, image_len),
+	char *checksum = purple_util_get_image_checksum(image_data, image_len);
+	char *filename = g_strdup_printf("%s.%s", checksum,
 	                       purple_util_get_image_extension(image_data, image_len));
+	g_free(checksum);
+	return filename;
 }
 
 gboolean


More information about the Commits mailing list