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
752ca8ec
Commit
752ca8ec
authored
Apr 19, 2011
by
Moritz Lipp
Browse files
Destroy surface if page is not visible
parent
09328e8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
callbacks.c
View file @
752ca8ec
...
...
@@ -75,6 +75,10 @@ cb_view_vadjustment_value_changed(GtkAdjustment *adjustment, gpointer data)
)
{
page
->
visible
=
true
;
render_page
(
zathura
->
sync
.
render_thread
,
page
);
}
else
{
page
->
visible
=
false
;
cairo_surface_destroy
(
page
->
surface
);
page
->
surface
=
NULL
;
}
free
(
offset
);
...
...
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