Commit c2b0f7c2 authored by Moritz Lipp's avatar Moritz Lipp
Browse files

Close document in cb_destroy

Fixes: #158
parent c69eebd8
......@@ -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();
......
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