diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-02 16:31:25 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-02 19:04:35 +0200 |
commit | 756b9e72ec0a122d450d1dd648c564e090146cd0 (patch) | |
tree | 721198d7e613be03315e15533ed0aa1f75829ebc | |
parent | 4102ad266e34422284906de3b34652a24e2f6455 (diff) | |
download | gnome-control-center-756b9e72ec0a122d450d1dd648c564e090146cd0.tar.gz |
background: Fix memory leaks in slideshow handling
A string was leaked when loading the name of the slideshow,
and a file object was left lingering as well.
https://bugzilla.gnome.org/show_bug.cgi?id=709243
-rw-r--r-- | panels/background/cc-background-xml.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/panels/background/cc-background-xml.c b/panels/background/cc-background-xml.c index d31c91f07..640746d7b 100644 --- a/panels/background/cc-background-xml.c +++ b/panels/background/cc-background-xml.c @@ -291,6 +291,7 @@ cc_background_xml_load_xml_internal (CcBackgroundXml *xml, g_object_unref (item); continue; } + g_object_unref (file); } } @@ -298,6 +299,7 @@ cc_background_xml_load_xml_internal (CcBackgroundXml *xml, * need to use proper code here */ uri = g_filename_to_uri (filename, NULL, NULL); id = g_strdup_printf ("%s#%s", uri, cname); + g_free (cname); g_free (uri); /* Make sure we don't already have this one and that filename exists */ |