[gtk/prop-list: 56/57] Fix memory leaks in the expression tests



commit 328104b5ddb71925541737fbf1172e781c9f4250
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Dec 15 10:53:35 2019 -0500

    Fix memory leaks in the expression tests

 testsuite/gtk/expression.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/testsuite/gtk/expression.c b/testsuite/gtk/expression.c
index c6a2fa9371..0b97fe0d59 100644
--- a/testsuite/gtk/expression.c
+++ b/testsuite/gtk/expression.c
@@ -412,6 +412,8 @@ test_constant_watch_this_destroyed (void)
 
   g_clear_object (&this);
   g_assert_cmpint (counter, ==, 1);
+
+  gtk_expression_unref (expr);
 }
 
 /* Basic test of gtk_expression_bind */


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