builder: Avoid another critical

Only free an expression if we managed
to create one.
This commit is contained in:
Matthias Clasen
2019-12-23 16:14:27 -05:00
parent b8faadec64
commit a101e8079f

View File

@@ -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: