[gtk+] Plug a memleak in the tracker search engine
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Plug a memleak in the tracker search engine
- Date: Sat, 19 Feb 2011 18:32:16 +0000 (UTC)
commit 2180267f5d4c7c400180dd2dd418e795d92c914f
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 19 13:31:50 2011 -0500
Plug a memleak in the tracker search engine
Patch by Vincent Untz,
https://bugzilla.gnome.org/show_bug.cgi?id=642771
gtk/gtksearchenginetracker.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtksearchenginetracker.c b/gtk/gtksearchenginetracker.c
index ad9ff7f..641e793 100644
--- a/gtk/gtksearchenginetracker.c
+++ b/gtk/gtksearchenginetracker.c
@@ -317,6 +317,7 @@ gtk_search_engine_tracker_start (GtkSearchEngine *engine)
g_debug ("Query starting, search criteria:'%s', location:'%s'", search_text, location_uri);
+#ifdef FTS_MATCHING
/* Using FTS: */
sparql = g_string_new ("SELECT nie:url(?urn) "
"WHERE {"
@@ -325,7 +326,6 @@ gtk_search_engine_tracker_start (GtkSearchEngine *engine)
" fts:match ");
sparql_append_string_literal (sparql, search_text);
-#ifdef FTS_MATCHING
if (location_uri)
{
g_string_append (sparql, " . FILTER (fn:starts-with(nie:url(?urn),");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]