background: Fix a few memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=757189
This commit is contained in:
parent
40b769bd08
commit
b37165de9c
2 changed files with 3 additions and 0 deletions
|
@ -768,6 +768,7 @@ bg_pictures_source_get_unique_path (const char *uri)
|
|||
g_free (filename);
|
||||
ret = g_file_get_path (file);
|
||||
g_object_unref (file);
|
||||
g_object_unref (parent);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -288,6 +288,8 @@ cc_background_xml_load_xml_internal (CcBackgroundXml *xml,
|
|||
file = g_file_new_for_uri (uri);
|
||||
if (g_file_query_exists (file, NULL) == FALSE)
|
||||
{
|
||||
g_free (cname);
|
||||
g_object_unref (file);
|
||||
g_object_unref (item);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue