projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed50772
)
Avoid an unnecessary check
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 19 Jun 2015 04:34:28 +0000
(
00:34
-0400)
committer
Matthias 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
patch
|
blob
|
history
diff --git
a/gtk/gtksearchenginetracker.c
b/gtk/gtksearchenginetracker.c
index 1c5db2405df46fe4ea270fa7f5358e96fed6f1e9..1d565242ceda2638869d923a4b34358b31d5104a 100644
(file)
--- 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);
}