Merge branch 'wip/dboles/searchenginetracker-plug-3' into 'gtk-3-24'

searchenginetracker: Don't leak the hits' GFiles

See merge request GNOME/gtk!206
This commit is contained in:
Matthias Clasen 2018-06-20 16:13:04 +00:00
commit 5265514c66

View File

@ -316,8 +316,12 @@ query_callback (GObject *object,
_gtk_search_engine_hits_added (GTK_SEARCH_ENGINE (tracker), hits);
_gtk_search_engine_finished (GTK_SEARCH_ENGINE (tracker));
g_list_free (hits);
for (i = 0; i < n; i++)
g_object_unref (hit[i].file);
g_free (hit);
g_variant_unref (reply);
g_variant_unref (r);