summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-04-18 17:43:41 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-04-18 17:44:59 -0400
commitc016565b17b2a94a1e2c7bbab9b5ae284110e578 (patch)
tree6f4486edddc33568b6b6a4812a6c16cf14f833d6
parent8118406d63b317c18cf52313a55c0f4b17093af3 (diff)
downloadnautilus-c016565b17b2a94a1e2c7bbab9b5ae284110e578.tar.gz
desktop-metadata: plug some memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=674086
-rw-r--r--libnautilus-private/nautilus-desktop-metadata.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-desktop-metadata.c b/libnautilus-private/nautilus-desktop-metadata.c
index 524a97a3d..a8856e23e 100644
--- a/libnautilus-private/nautilus-desktop-metadata.c
+++ b/libnautilus-private/nautilus-desktop-metadata.c
@@ -68,6 +68,7 @@ save_in_idle_cb (gpointer data)
g_file_set_contents (filename,
contents, length,
&error);
+ g_free (contents);
}
if (error != NULL) {
@@ -76,6 +77,8 @@ save_in_idle_cb (gpointer data)
g_error_free (error);
}
+ g_free (filename);
+
return FALSE;
}