Commit 72629c68 authored by Moritz Lipp's avatar Moritz Lipp

CS

parent c3268591
......@@ -16,7 +16,7 @@
void
config_load_default(zathura_t* zathura)
{
if (!zathura || !zathura->ui.session) {
if (zathura == NULL || zathura->ui.session == NULL) {
return;
}
......
......@@ -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;
......
Markdown is supported
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