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) cb_destroy(GtkWidget* UNUSED(widget), zathura_t* zathura)
{ {
if (zathura != NULL && zathura->document != NULL) { if (zathura != NULL && zathura->document != NULL) {
zathura_document_free(zathura->document); document_close(zathura, false);
zathura->document = NULL;
} }
gtk_main_quit(); gtk_main_quit();