[Commits] ldifimport_extension.c 1.4 1.5

miras at claws-mail.org miras at claws-mail.org
Mon Jan 2 00:30:36 CET 2012


Update of /home/claws-mail/contacts/extensions/import
In directory claws-mail:/tmp/cvs-serv29710/extensions/import

Modified Files:
	ldifimport_extension.c 
Log Message:
2012-01-01 [mir]	0.6.0cvs69

	* extensions/import/ldifimport_extension.c
	    Fix a potential memory leak.
	    Added error widget.

Index: ldifimport_extension.c
===================================================================
RCS file: /home/claws-mail/contacts/extensions/import/ldifimport_extension.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- ldifimport_extension.c	31 Dec 2011 14:32:22 -0000	1.4
+++ ldifimport_extension.c	1 Jan 2012 23:30:34 -0000	1.5
@@ -219,6 +219,12 @@
 	gchar* error = NULL;
 	
 	register_hook_function(my_id, EXTENSION_AFTER_INIT_HOOK, setup, &error);
+	if (error) {
+		show_message(NULL, GTK_UTIL_MESSAGE_ERROR, error);
+		g_free(error);
+		return 1;
+	}
+	
 	return 0;
 }
 



More information about the Commits mailing list