diff --git a/panels/background/bg-pictures-source.c b/panels/background/bg-pictures-source.c index a61164180..038b4f58b 100644 --- a/panels/background/bg-pictures-source.c +++ b/panels/background/bg-pictures-source.c @@ -279,12 +279,12 @@ add_single_file (BgPicturesSource *bg_source, g_file_read_async (file, G_PRIORITY_DEFAULT, bg_source->priv->cancellable, picture_opened_for_read, bg_source); - g_object_unref (file); retval = TRUE; out: g_clear_object (&item); + g_object_unref (file); g_free (uri); return retval; }