From de52bae4dad3f49b28dbd27a2d831800b9a9dd8b Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sun, 16 Oct 2011 21:11:25 +0200 Subject: [PATCH] close the document before destroying the widgets --- zathura.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zathura.c b/zathura.c index 9d5c9a7..7bcae5a 100644 --- a/zathura.c +++ b/zathura.c @@ -249,12 +249,12 @@ zathura_free(zathura_t* zathura) return; } + document_close(zathura); + if (zathura->ui.session != NULL) { girara_session_destroy(zathura->ui.session); } - document_close(zathura); - /* bookmarks */ girara_list_free(zathura->bookmarks.bookmarks);