mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 08:36:01 +01:00
Finish surface before calling destroy
This commit is contained in:
parent
cbb22739e5
commit
2acd67c142
2 changed files with 2 additions and 1 deletions
2
config.c
2
config.c
|
@ -110,7 +110,7 @@ config_load_default(zathura_t* zathura)
|
|||
girara_setting_add(gsession, "zoom-min", &int_value, INT, false, _("Zoom minimum"), NULL, NULL);
|
||||
int_value = 1000;
|
||||
girara_setting_add(gsession, "zoom-max", &int_value, INT, false, _("Zoom maximum"), NULL, NULL);
|
||||
int_value = 5;
|
||||
int_value = 20;
|
||||
girara_setting_add(gsession, "page-store-threshold", &int_value, INT, false, _("Life time (in seconds) of a hidden page"), NULL, NULL);
|
||||
girara_setting_add(gsession, "page-store-interval", &int_value, INT, true, _("Amount of seconds between each cache purge"), NULL, NULL);
|
||||
|
||||
|
|
|
@ -483,6 +483,7 @@ zathura_page_widget_update_surface(ZathuraPage* widget, cairo_surface_t* surface
|
|||
zathura_page_widget_private_t* priv = ZATHURA_PAGE_GET_PRIVATE(widget);
|
||||
g_static_mutex_lock(&(priv->lock));
|
||||
if (priv->surface != NULL) {
|
||||
cairo_surface_finish(priv->surface);
|
||||
cairo_surface_destroy(priv->surface);
|
||||
}
|
||||
priv->surface = surface;
|
||||
|
|
Loading…
Reference in a new issue