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);