[gnome-builder/wip/gtk4-port] plugins/symbol-tree: fix typo and leak



commit 37b2af17afea14fe96503b918397aba43f7e95c4
Author: Christian Hergert <chergert redhat com>
Date:   Wed May 11 17:41:10 2022 -0700

    plugins/symbol-tree: fix typo and leak

 src/plugins/symbol-tree/gbp-symbol-popover.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/symbol-tree/gbp-symbol-popover.c b/src/plugins/symbol-tree/gbp-symbol-popover.c
index 8542eb18a..66445a50f 100644
--- a/src/plugins/symbol-tree/gbp-symbol-popover.c
+++ b/src/plugins/symbol-tree/gbp-symbol-popover.c
@@ -136,6 +136,7 @@ gbp_symbol_popover_dispose (GObject *object)
 
   g_clear_object (&self->filter);
   g_clear_object (&self->symbol_tree);
+  g_clear_pointer (&self->search_needle, g_strfreev);
 
   G_OBJECT_CLASS (gbp_symbol_popover_parent_class)->dispose (object);
 }
@@ -281,7 +282,7 @@ filter_by_name (gpointer item,
   if (!self->search_needle || !self->search_needle[0] || !*self->search_needle[0])
     return TRUE;
 
-  /* Show a row if itself of any parent matches */
+  /* Show a row if itself or any parent matches */
   for (parent = row; parent; parent = gtk_tree_list_row_get_parent (parent))
     {
       node = gtk_tree_list_row_get_item (parent);


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