From 2180267f5d4c7c400180dd2dd418e795d92c914f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 19 Feb 2011 13:31:50 -0500 Subject: 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 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtksearchenginetracker.c') diff --git a/gtk/gtksearchenginetracker.c b/gtk/gtksearchenginetracker.c index ad9ff7fe2f..641e7938eb 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),"); -- cgit v1.2.1