mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 17:03:47 +01:00
Unref page widgets
This commit is contained in:
parent
02582692f9
commit
aee30212d1
@ -775,6 +775,9 @@ document_close(zathura_t* zathura, bool keep_monitor)
|
|||||||
|
|
||||||
/* remove widgets */
|
/* remove widgets */
|
||||||
gtk_container_foreach(GTK_CONTAINER(zathura->ui.page_widget), remove_page_from_table, (gpointer) 1);
|
gtk_container_foreach(GTK_CONTAINER(zathura->ui.page_widget), remove_page_from_table, (gpointer) 1);
|
||||||
|
for (unsigned int i = 0; i < zathura_document_get_number_of_pages(zathura->document); i++) {
|
||||||
|
g_object_unref(zathura->pages[i]);
|
||||||
|
}
|
||||||
free(zathura->pages);
|
free(zathura->pages);
|
||||||
zathura->pages = NULL;
|
zathura->pages = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user