[gtk/prop-list: 18/18] any filter: Add a missing precondition



commit a45e4e874453dda777a47394a26eceb8d8a04863
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Dec 8 13:08:30 2019 -0500

    any filter: Add a missing precondition

 gtk/gtkfilters.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkfilters.c b/gtk/gtkfilters.c
index 9a0157b466..01dc740248 100644
--- a/gtk/gtkfilters.c
+++ b/gtk/gtkfilters.c
@@ -255,6 +255,8 @@ gtk_any_filter_remove (GtkAnyFilter *self,
   GSequenceIter *iter;
   guint length;
 
+  g_return_if_fail (GTK_IS_ANY_FILTER (self));
+
   length = g_sequence_get_length (self->filters);
   if (position >= length)
     return;


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