From 64afa765c88122e4fbaf56d4282ca2d20962351b Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 27 Jun 2019 16:42:58 +0100 Subject: [PATCH] Do not release reference on the subject of an expression We don't own the reference in the first place. --- gtk/gtkconstraintexpression.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gtk/gtkconstraintexpression.c b/gtk/gtkconstraintexpression.c index 0e5db96b62..6cd7dfcbaf 100644 --- a/gtk/gtkconstraintexpression.c +++ b/gtk/gtkconstraintexpression.c @@ -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 {