From 23803322609824d4c545bbad2753b44d8b2f1bcb Mon Sep 17 00:00:00 2001 From: Sivaiah Nallagatla Date: Tue, 20 Jan 2004 16:17:18 +0000 Subject: do not try to unref when query is NULL 2004-01-20 Sivaiah Nallagatla * printing/e-contact-print.c (e_contact_print_response): do not try to unref when query is NULL svn path=/trunk/; revision=24327 --- addressbook/ChangeLog | 5 +++++ addressbook/printing/e-contact-print.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index b8c6ed2daa..39429e9e53 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2004-01-20 Sivaiah Nallagatla + + * printing/e-contact-print.c (e_contact_print_response): do not + try to unref when query is NULL + 2004 -01-20 Sivaiah Nallagatla * gui/contact-editor/e-contact-editor.c (edit_im_clicked) : do not call diff --git a/addressbook/printing/e-contact-print.c b/addressbook/printing/e-contact-print.c index 19e7f6b36f..8966504f28 100644 --- a/addressbook/printing/e-contact-print.c +++ b/addressbook/printing/e-contact-print.c @@ -988,7 +988,10 @@ e_contact_print_response(GtkWidget *dialog, gint response_id, gpointer data) 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); -- cgit v1.2.3