mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 09:06:07 +01:00
Destroy surface if page is not visible
This commit is contained in:
parent
09328e8e89
commit
752ca8ec11
1 changed files with 4 additions and 0 deletions
|
@ -75,6 +75,10 @@ cb_view_vadjustment_value_changed(GtkAdjustment *adjustment, gpointer data)
|
||||||
) {
|
) {
|
||||||
page->visible = true;
|
page->visible = true;
|
||||||
render_page(zathura->sync.render_thread, page);
|
render_page(zathura->sync.render_thread, page);
|
||||||
|
} else {
|
||||||
|
page->visible = false;
|
||||||
|
cairo_surface_destroy(page->surface);
|
||||||
|
page->surface = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(offset);
|
free(offset);
|
||||||
|
|
Loading…
Reference in a new issue