[tracker/writeback] Plugged a memory leak
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/writeback] Plugged a memory leak
- Date: Thu, 26 Nov 2009 09:17:28 +0000 (UTC)
commit fa6ffa21a5beda8d4e429bdd6bd12c3f2aaf45cb
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Nov 26 10:15:59 2009 +0100
Plugged a memory leak
src/tracker-writeback/tracker-writeback-xmp.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-writeback/tracker-writeback-xmp.c b/src/tracker-writeback/tracker-writeback-xmp.c
index df09c81..deaa107 100644
--- a/src/tracker-writeback/tracker-writeback-xmp.c
+++ b/src/tracker-writeback/tracker-writeback-xmp.c
@@ -173,6 +173,12 @@ writeback_xmp_update_file_metadata (TrackerWritebackFile *wbf,
xmp_set_property (xmp, NS_DC, "creator", name_row[0], 0);
}
}
+
+ if (name_array) {
+ g_ptr_array_foreach (name_array, (GFunc) g_strfreev, NULL);
+ g_ptr_array_free (name_array, TRUE);
+ }
+
} else {
g_clear_error (&error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]