[gtk+] Avoid an unnecessary check



commit d9a22e7e30093ee83231d28ff217b2e4582152cd
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jun 19 00:34:28 2015 -0400

    Avoid an unnecessary check
    
    We create the indexed_locations array unconditionally.

 gtk/gtksearchenginetracker.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtksearchenginetracker.c b/gtk/gtksearchenginetracker.c
index 1c5db24..1d56524 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);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]