Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
aee30212
Commit
aee30212
authored
May 08, 2012
by
Moritz Lipp
Browse files
Unref page widgets
parent
02582692
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura.c
View file @
aee30212
...
...
@@ -775,6 +775,9 @@ document_close(zathura_t* zathura, bool keep_monitor)
/* remove widgets */
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
);
zathura
->
pages
=
NULL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment