[tracker] libtracker-data: Fix memory leak in gvdb writing
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Fix memory leak in gvdb writing
- Date: Wed, 12 Jan 2011 15:59:29 +0000 (UTC)
commit 5df5a1136acb1494a4f1b7cc67487f989edb13fa
Author: Jürg Billeter <j bitron ch>
Date: Wed Jan 12 16:28:19 2011 +0100
libtracker-data: Fix memory leak in gvdb writing
src/libtracker-data/tracker-ontologies.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-ontologies.c b/src/libtracker-data/tracker-ontologies.c
index b5d58d6..c09699d 100644
--- a/src/libtracker-data/tracker-ontologies.c
+++ b/src/libtracker-data/tracker-ontologies.c
@@ -502,6 +502,7 @@ tracker_ontologies_write_gvdb (const gchar *filename,
gvdb_hash_table_insert_statement (table, item, uri, "prefix", tracker_namespace_get_prefix (namespace));
}
+ g_hash_table_unref (table);
table = gvdb_hash_table_new (root_table, "classes");
root = gvdb_hash_table_insert (table, "");
@@ -529,6 +530,7 @@ tracker_ontologies_write_gvdb (const gchar *filename,
gvdb_hash_table_insert_variant (table, item, uri, "super-classes", g_variant_builder_end (&builder));
}
}
+ g_hash_table_unref (table);
table = gvdb_hash_table_new (root_table, "properties");
root = gvdb_hash_table_insert (table, "");
@@ -566,6 +568,7 @@ tracker_ontologies_write_gvdb (const gchar *filename,
gvdb_hash_table_insert_variant (table, item, uri, "domain-indexes", g_variant_builder_end (&builder));
}
}
+ g_hash_table_unref (table);
gvdb_table_write_contents (root_table, filename, FALSE, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]