Commit 2b95f957 authored by Robert Ancell's avatar Robert Ancell
Browse files

background: Fix compile warnings with g_clear_pointer

parent 092f24d6
Pipeline #57006 passed with stages
in 5 minutes and 24 seconds
......@@ -263,7 +263,7 @@ picture_scaled (GObject *source_object,
bg_pictures_source_get_unique_filename (uri),
GINT_TO_POINTER (TRUE));
g_clear_pointer (&surface, (GDestroyNotify) cairo_surface_destroy);
g_clear_pointer (&surface, cairo_surface_destroy);
}
static void
......@@ -576,7 +576,7 @@ add_single_file (BgPicturesSource *bg_source,
*ret_row_ref = NULL;
}
gtk_tree_path_free (path);
g_clear_pointer (&surface, (GDestroyNotify) cairo_surface_destroy);
g_clear_pointer (&surface, cairo_surface_destroy);
return retval;
}
......
......@@ -73,7 +73,7 @@ load_wallpapers (gchar *key,
1, item,
2, cc_background_item_get_name (item),
-1);
g_clear_pointer (&surface, (GDestroyNotify) cairo_surface_destroy);
g_clear_pointer (&surface, cairo_surface_destroy);
}
static void
......
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