diff options
Diffstat (limited to 'addressbook/printing')
-rw-r--r-- | addressbook/printing/e-contact-print.c | 5 |
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); |