aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/printing
diff options
context:
space:
mode:
authorSivaiah Nallagatla <snallagatla@novell.com>2004-01-21 00:17:18 +0800
committerSivaiah Nallagatla <siva@src.gnome.org>2004-01-21 00:17:18 +0800
commit23803322609824d4c545bbad2753b44d8b2f1bcb (patch)
tree8f7590df517e4fa49a0de9c69eab86620ac15d48 /addressbook/printing
parent699d4422d8aa3d52e4262e182d816e0f678fb6c1 (diff)
downloadgsoc2013-evolution-23803322609824d4c545bbad2753b44d8b2f1bcb.tar
gsoc2013-evolution-23803322609824d4c545bbad2753b44d8b2f1bcb.tar.gz
gsoc2013-evolution-23803322609824d4c545bbad2753b44d8b2f1bcb.tar.bz2
gsoc2013-evolution-23803322609824d4c545bbad2753b44d8b2f1bcb.tar.lz
gsoc2013-evolution-23803322609824d4c545bbad2753b44d8b2f1bcb.tar.xz
gsoc2013-evolution-23803322609824d4c545bbad2753b44d8b2f1bcb.tar.zst
gsoc2013-evolution-23803322609824d4c545bbad2753b44d8b2f1bcb.zip
do not try to unref when query is NULL
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 svn path=/trunk/; revision=24327
Diffstat (limited to 'addressbook/printing')
-rw-r--r--addressbook/printing/e-contact-print.c5
1 files changed, 4 insertions, 1 deletions
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);