mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 21:44:20 +01:00
Destroy surface if page is not visible
This commit is contained in:
parent
09328e8e89
commit
752ca8ec11
@ -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 New Issue
Block a user