[gtk/wip/ebassi/constraint-layout: 100/105] Do not release reference on the subject of an expression



commit ad40630008059ce0bee48ec047fb15c60ee81066
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Jun 27 16:42:58 2019 +0100

    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
             {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]