Close document in cb_destroy

Fixes: #158
This commit is contained in:
Moritz Lipp 2012-05-01 12:03:14 +02:00
parent c69eebd87f
commit c2b0f7c20f

View file

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