[evolution-patches] address book patch to fix #53114



Hi, 
Attached small patch prevents unrefing query when its value is null and
hence fixes a evo crash
Thanks,
Siva
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.1533
diff -u -r1.1533 ChangeLog
--- ChangeLog	20 Jan 2004 06:20:22 -0000	1.1533
+++ ChangeLog	20 Jan 2004 13:17:04 -0000
@@ -1,3 +1,8 @@
+2004-01-20 Sivaiah Nallagatla   <snallagatla novell com>
+
+	* printing/e-contact-print.c (e_contact_print_response): do not 
+	try to unref when query is NULL
+
 2004 -01-20 Sivaiah Nallagatla  <snallagatla novell com>
 
 	* gui/contact-editor/e-contact-editor.c (edit_im_clicked) : do not call
Index: printing/e-contact-print.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/printing/e-contact-print.c,v
retrieving revision 1.42
diff -u -r1.42 e-contact-print.c
--- printing/e-contact-print.c	19 Jan 2004 18:51:25 -0000	1.42
+++ printing/e-contact-print.c	20 Jan 2004 13:17:04 -0000
@@ -988,7 +988,10 @@
 			e_free_object_list (contact_list);
 		else
 			g_object_unref(contact);
-		e_book_query_unref (query);
+				
+		if (query) 
+		        e_book_query_unref (query);
+
 		gtk_widget_destroy (dialog);
 		g_free(style);
 		g_free(ctxt);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]