From d9a22e7e30093ee83231d28ff217b2e4582152cd Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 19 Jun 2015 00:34:28 -0400 Subject: [PATCH] Avoid an unnecessary check We create the indexed_locations array unconditionally. --- gtk/gtksearchenginetracker.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtksearchenginetracker.c b/gtk/gtksearchenginetracker.c index 1c5db2405d..1d565242ce 100644 --- a/gtk/gtksearchenginetracker.c +++ b/gtk/gtksearchenginetracker.c @@ -84,8 +84,7 @@ finalize (GObject *object) g_clear_object (&tracker->priv->query); g_clear_object (&tracker->priv->connection); - if (tracker->priv->indexed_locations) - g_ptr_array_unref (tracker->priv->indexed_locations); + g_ptr_array_unref (tracker->priv->indexed_locations); G_OBJECT_CLASS (_gtk_search_engine_tracker_parent_class)->finalize (object); }