mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 12:55:59 +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;
|
||||
render_page(zathura->sync.render_thread, page);
|
||||
} else {
|
||||
page->visible = false;
|
||||
cairo_surface_destroy(page->surface);
|
||||
page->surface = NULL;
|
||||
}
|
||||
|
||||
free(offset);
|
||||
|
|
Loading…
Reference in a new issue