[Commits] vcard-utils.c 1.2 1.3

miras at claws-mail.org miras at claws-mail.org
Sun Jan 1 11:10:24 CET 2012


Update of /home/claws-mail/contacts/extensions/vcard/src
In directory claws-mail:/tmp/cvs-serv32189/extensions/vcard/src

Modified Files:
	vcard-utils.c 
Log Message:
2012-01-01 [mir]	0.6.0cvs68

	* extensions/vcard/src/vcard-utils.c
	    Fix memory leak
	    silence extension when not i debug mode

Index: vcard-utils.c
===================================================================
RCS file: /home/claws-mail/contacts/extensions/vcard/src/vcard-utils.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- vcard-utils.c	1 Jan 2012 02:07:40 -0000	1.2
+++ vcard-utils.c	1 Jan 2012 10:10:22 -0000	1.3
@@ -130,6 +130,7 @@
 				return (void *) 0;
 			guchar* data = (guchar *) g_memdup(vObjectAnyValue(o), size);
 			gchar* s = g_base64_encode(data, size);
+			g_free(data);
 	    	return (void *) s;
 		}
 	    default: {
@@ -342,7 +343,7 @@
 			value = vcard_value(prop);
 			if (value) {
 				debug_print("adding: %s -> %s\n", attrib, value);
-				fprintf(stderr, "(catch all) adding: %s -> %s\n", attrib, (gchar *)value);
+				//fprintf(stderr, "(catch all) adding: %s -> %s\n", attrib, (gchar *)value);
 				swap_data(contact->data, attrib, value);
 				g_free(value);
 			}



More information about the Commits mailing list