changeset 22834:485689a88b61

Leak fix
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 07 May 2008 18:10:43 +0000
parents af577b5a6aac
children f28047b68678 56a38b60576e
files libpurple/protocols/jabber/buddy.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.c	Wed May 07 09:11:24 2008 +0000
+++ b/libpurple/protocols/jabber/buddy.c	Wed May 07 18:10:43 2008 +0000
@@ -547,6 +547,7 @@
 				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]);