Do not release reference on the subject of an expression

We don't own the reference in the first place.
This commit is contained in:
Emmanuele Bassi
2019-06-27 16:42:58 +01:00
parent f07ba4ac5b
commit ad40630008

View File

@@ -982,9 +982,6 @@ gtk_constraint_expression_add_variable (GtkConstraintExpression *expression,
gtk_constraint_solver_note_removed_variable (solver, variable, subject);
gtk_constraint_expression_remove_term (expression, variable);
if (subject != NULL)
gtk_constraint_variable_unref (subject);
}
else
{