mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 11:16:00 +01:00
Free index if document gets closed
This commit is contained in:
parent
2ace141d07
commit
f239ea145c
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue