From c2b0f7c20f3f6d25d1f6d4bad2929ce233c12029 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Tue, 1 May 2012 12:03:14 +0200 Subject: [PATCH] Close document in cb_destroy Fixes: #158 --- callbacks.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/callbacks.c b/callbacks.c index 851af54..6054cc4 100644 --- a/callbacks.c +++ b/callbacks.c @@ -22,8 +22,7 @@ gboolean cb_destroy(GtkWidget* UNUSED(widget), zathura_t* zathura) { if (zathura != NULL && zathura->document != NULL) { - zathura_document_free(zathura->document); - zathura->document = NULL; + document_close(zathura, false); } gtk_main_quit();