Avoid an unnecessary check
authorMatthias Clasen <mclasen@redhat.com>
Fri, 19 Jun 2015 04:34:28 +0000 (00:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 19 Jun 2015 04:34:28 +0000 (00:34 -0400)
We create the indexed_locations array unconditionally.

gtk/gtksearchenginetracker.c

index 1c5db2405df46fe4ea270fa7f5358e96fed6f1e9..1d565242ceda2638869d923a4b34358b31d5104a 100644 (file)
@@ -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);
 }