pidgin: 4955af47: Leak fix

nosnilmot at pidgin.im nosnilmot at pidgin.im
Wed May 7 14:15:43 EDT 2008


-----------------------------------------------------------------
Revision: 4955af47f51251e1bc160a9fbbd177cca708d81c
Ancestor: d7144f5dbbde09137aff1ceadfd419e25303bf7d
Author: nosnilmot at pidgin.im
Date: 2008-05-07T18:10:43
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4955af47f51251e1bc160a9fbbd177cca708d81c

Modified files:
        libpurple/protocols/jabber/buddy.c

ChangeLog: 

Leak fix

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/buddy.c	6738099084e5e2868f73c4ddb6e60cec29fcfb2f
+++ libpurple/protocols/jabber/buddy.c	7a16c1e33753497467de2430b1ba47aca1ab711c
@@ -547,6 +547,7 @@ void jabber_set_buddy_icon(PurpleConnect
 				ctx = purple_cipher_context_new_by_name("sha1", NULL);
 				purple_cipher_context_append(ctx, purple_imgstore_get_data(img), purple_imgstore_get_size(img));
 				purple_cipher_context_digest(ctx, sizeof(digest), digest, NULL);
+				purple_cipher_context_destroy(ctx);
 				
 				/* convert digest to a string */
 				hash = g_strdup_printf("%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x",digest[0],digest[1],digest[2],digest[3],digest[4],digest[5],digest[6],digest[7],digest[8],digest[9],digest[10],digest[11],digest[12],digest[13],digest[14],digest[15],digest[16],digest[17],digest[18],digest[19]);


More information about the Commits mailing list