[gtk/fix-memleaks: 8/11] builder: Add an assertion
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-memleaks: 8/11] builder: Add an assertion
- Date: Sat, 27 Mar 2021 23:12:20 +0000 (UTC)
commit 0c6da9714749224aba625fe47b6ee68c1fdaf811
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Mar 27 18:39:37 2021 -0400
builder: Add an assertion
This case is clearly not meant to happen.
Assert that it doesn't.
gtk/gtkbuilder.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c
index 6f56a196c5..8a92d93fe4 100644
--- a/gtk/gtkbuilder.c
+++ b/gtk/gtkbuilder.c
@@ -1145,6 +1145,8 @@ gtk_builder_create_bindings (GtkBuilder *builder,
free_binding_expression_info (info);
}
+ else
+ g_assert_not_reached ();
}
g_slist_free (priv->bindings);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]