mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 09:36:00 +01:00
Merge branch 'develop' of pwmt.org:zathura into develop
This commit is contained in:
commit
1c0920a190
2 changed files with 2 additions and 2 deletions
2
config.c
2
config.c
|
@ -16,7 +16,7 @@
|
|||
void
|
||||
config_load_default(zathura_t* zathura)
|
||||
{
|
||||
if (!zathura || !zathura->ui.session) {
|
||||
if (zathura == NULL || zathura->ui.session == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -242,7 +242,7 @@ zathura_page_view_update_surface(ZathuraPageView* widget, cairo_surface_t* surfa
|
|||
{
|
||||
zathura_page_view_private_t* priv = ZATHURA_PAGE_VIEW_GET_PRIVATE(widget);
|
||||
g_static_mutex_lock(&(priv->lock));
|
||||
if (priv->surface) {
|
||||
if (priv->surface != NULL) {
|
||||
cairo_surface_destroy(priv->surface);
|
||||
}
|
||||
priv->surface = surface;
|
||||
|
|
Loading…
Reference in a new issue