aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/printing
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2004-01-20 02:51:25 +0800
committerHans Petter <hansp@src.gnome.org>2004-01-20 02:51:25 +0800
commitb95bfa25d6144df96f467a8ecb0f010f8edd41fa (patch)
tree6e944aef565b22796d8bc7e526a51a3e03209869 /addressbook/printing
parentaf85f887c25f8a6348bb43a39692bcca0e9cc421 (diff)
downloadgsoc2013-evolution-b95bfa25d6144df96f467a8ecb0f010f8edd41fa.tar.gz
gsoc2013-evolution-b95bfa25d6144df96f467a8ecb0f010f8edd41fa.tar.zst
gsoc2013-evolution-b95bfa25d6144df96f467a8ecb0f010f8edd41fa.zip
Only unref if we have a query.
2004-01-19 Hans Petter Jansson <hpj@ximian.com> * printing/e-contact-print.c (complete_sequence): Only unref if we have a query. svn path=/trunk/; revision=24310
Diffstat (limited to 'addressbook/printing')
-rw-r--r--addressbook/printing/e-contact-print.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/addressbook/printing/e-contact-print.c b/addressbook/printing/e-contact-print.c
index d826a71d41..19e7f6b36f 100644
--- a/addressbook/printing/e-contact-print.c
+++ b/addressbook/printing/e-contact-print.c
@@ -589,7 +589,8 @@ complete_sequence(EBookView *book_view, EBookViewStatus status, EContactPrintCon
g_object_unref(ctxt->master);
if (ctxt->book)
g_object_unref(ctxt->book);
- e_book_query_unref (ctxt->query);
+ if (ctxt->query)
+ e_book_query_unref (ctxt->query);
g_list_foreach(ctxt->contacts, (GFunc) g_object_unref, NULL);
g_list_free(ctxt->contacts);
g_object_unref(ctxt->style->headings_font);
@@ -876,7 +877,6 @@ e_contact_print_response(GtkWidget *dialog, gint response_id, gpointer data)
GList *contact_list = NULL;
gdouble font_size;
-
if (uses_book) {
book = g_object_get_data(G_OBJECT(dialog), "book");
query = g_object_get_data(G_OBJECT(dialog), "query");
@@ -964,6 +964,7 @@ e_contact_print_response(GtkWidget *dialog, gint response_id, gpointer data)
#endif
ctxt->book = book;
ctxt->query = query;
+
if (uses_book) {
ctxt->contacts = NULL;
g_object_ref(book);