[libdazzle] fuzzy-index: plug leak of character row data
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] fuzzy-index: plug leak of character row data
- Date: Tue, 9 Jan 2018 06:26:16 +0000 (UTC)
commit 04ee63cac029f48bd63227005f4453e58294143c
Author: Christian Hergert <chergert redhat com>
Date: Mon Jan 8 22:23:00 2018 -0800
fuzzy-index: plug leak of character row data
src/search/dzl-fuzzy-index-builder.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/search/dzl-fuzzy-index-builder.c b/src/search/dzl-fuzzy-index-builder.c
index ddc17a0..45b41fc 100644
--- a/src/search/dzl-fuzzy-index-builder.c
+++ b/src/search/dzl-fuzzy-index-builder.c
@@ -343,7 +343,6 @@ dzl_fuzzy_index_builder_build_lookaside (DzlFuzzyIndexBuilder *self)
static GVariant *
dzl_fuzzy_index_builder_build_index (DzlFuzzyIndexBuilder *self)
{
- g_autoptr(GPtrArray) ar = NULL;
g_autoptr(GHashTable) rows = NULL;
GVariantDict dict;
GHashTableIter iter;
@@ -353,8 +352,7 @@ dzl_fuzzy_index_builder_build_index (DzlFuzzyIndexBuilder *self)
g_assert (DZL_IS_FUZZY_INDEX_BUILDER (self));
- ar = g_ptr_array_new_with_free_func ((GDestroyNotify)g_array_unref);
- rows = g_hash_table_new (NULL, NULL);
+ rows = g_hash_table_new_full (NULL, NULL, NULL, (GDestroyNotify)g_array_unref);
for (i = 0; i < self->kv_pairs->len; i++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]