[gtk/prop-list: 91/96] builder: Avoid another critical
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/prop-list: 91/96] builder: Avoid another critical
- Date: Tue, 24 Dec 2019 20:44:34 +0000 (UTC)
commit a101e8079ff0470f9d3b240264c86fbff4615ae0
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Dec 23 16:14:27 2019 -0500
builder: Avoid another critical
Only free an expression if we managed
to create one.
gtk/gtkbuilderparser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c
index 6ba536dd58..f7a323b508 100644
--- a/gtk/gtkbuilderparser.c
+++ b/gtk/gtkbuilderparser.c
@@ -1042,7 +1042,7 @@ free_expression_info (ExpressionInfo *info)
switch (info->expression_type)
{
case EXPRESSION_EXPRESSION:
- gtk_expression_unref (info->expression);
+ g_clear_pointer (&info->expression, gtk_expression_unref);
break;
case EXPRESSION_CONSTANT:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]