Commit 752ca8ec authored by Moritz Lipp's avatar Moritz Lipp
Browse files

Destroy surface if page is not visible

parent 09328e8e
...@@ -75,6 +75,10 @@ cb_view_vadjustment_value_changed(GtkAdjustment *adjustment, gpointer data) ...@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment