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

Free index if document gets closed

parent 2ace141d
......@@ -721,6 +721,12 @@ document_close(zathura_t* zathura, bool keep_monitor)
zathura_document_free(zathura->document);
zathura->document = NULL;
/* remove index */
if (zathura->ui.index != NULL) {
g_object_ref_sink(zathura->ui.index);
zathura->ui.index = NULL;
}
gtk_widget_hide(zathura->ui.page_widget);
statusbar_page_number_update(zathura);
......
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