summaryrefslogtreecommitdiff
path: root/gtk/gtkconstraintexpression.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2019-06-27 16:42:58 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2019-06-30 23:42:44 +0100
commit64afa765c88122e4fbaf56d4282ca2d20962351b (patch)
tree7f2f5d286850f2c00400d3616c5e97e73e5316ed /gtk/gtkconstraintexpression.c
parenta246d8c926689f2822cd6ebbf64cd9ca0d510477 (diff)
downloadgtk+-64afa765c88122e4fbaf56d4282ca2d20962351b.tar.gz
Do not release reference on the subject of an expression
We don't own the reference in the first place.
Diffstat (limited to 'gtk/gtkconstraintexpression.c')
-rw-r--r--gtk/gtkconstraintexpression.c3
1 files changed, 0 insertions, 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
{