This commit is contained in:
Moritz Lipp 2012-02-07 14:56:57 +01:00
parent c32685919f
commit 72629c6803
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@
void
config_load_default(zathura_t* zathura)
{
if (!zathura || !zathura->ui.session) {
if (zathura == NULL || zathura->ui.session == NULL) {
return;
}

View file

@ -228,7 +228,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;