Commit de52bae4 authored by Sebastian Ramacher's avatar Sebastian Ramacher
Browse files

close the document before destroying the widgets

parent 370aa11c
...@@ -249,12 +249,12 @@ zathura_free(zathura_t* zathura) ...@@ -249,12 +249,12 @@ zathura_free(zathura_t* zathura)
return; return;
} }
document_close(zathura);
if (zathura->ui.session != NULL) { if (zathura->ui.session != NULL) {
girara_session_destroy(zathura->ui.session); girara_session_destroy(zathura->ui.session);
} }
document_close(zathura);
/* bookmarks */ /* bookmarks */
girara_list_free(zathura->bookmarks.bookmarks); girara_list_free(zathura->bookmarks.bookmarks);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment