[nautilus/gnome-3-4] desktop-metadata: plug some memory leaks
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-4] desktop-metadata: plug some memory leaks
- Date: Wed, 18 Apr 2012 21:45:26 +0000 (UTC)
commit c016565b17b2a94a1e2c7bbab9b5ae284110e578
Author: Charles Kerr <charles kerr canonical com>
Date: Wed Apr 18 17:43:41 2012 -0400
desktop-metadata: plug some memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=674086
libnautilus-private/nautilus-desktop-metadata.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-desktop-metadata.c b/libnautilus-private/nautilus-desktop-metadata.c
index 524a97a..a8856e2 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]