[gnome-builder] file-search: don't leak file name
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] file-search: don't leak file name
- Date: Mon, 17 Oct 2016 09:22:17 +0000 (UTC)
commit 4e2f30405d55a3e4bd7278655ca2fa3f01a9c27f
Author: Christian Hergert <chergert redhat com>
Date: Mon Oct 17 02:22:10 2016 -0700
file-search: don't leak file name
plugins/file-search/gb-file-search-index.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/file-search/gb-file-search-index.c b/plugins/file-search/gb-file-search-index.c
index 1109ac0..0bad1c0 100644
--- a/plugins/file-search/gb-file-search-index.c
+++ b/plugins/file-search/gb-file-search-index.c
@@ -357,7 +357,7 @@ gb_file_search_index_insert (GbFileSearchIndex *self,
g_return_if_fail (relative_path != NULL);
g_return_if_fail (self->fuzzy != NULL);
- fuzzy_insert (self->fuzzy, g_strdup (relative_path), NULL);
+ fuzzy_insert (self->fuzzy, relative_path, NULL);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]