[gtk/4.0-backports: 6/53] testsuite: Fix a leak




commit 90ef38864175228bb42a87a443617412899ed676
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jan 22 11:50:04 2021 -0500

    testsuite: Fix a leak
    
    asan pointed out that the array tests leak.

 testsuite/gdk/arrayimpl.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/testsuite/gdk/arrayimpl.c b/testsuite/gdk/arrayimpl.c
index 77494fbf70..3c3ebb992d 100644
--- a/testsuite/gdk/arrayimpl.c
+++ b/testsuite/gdk/arrayimpl.c
@@ -100,6 +100,8 @@ gdk_array(test_splice) (void)
       sum -= gdk_array(get) (&v, i);
     }
   g_assert_cmpint (sum, ==, 0);
+
+  gdk_array(clear) (&v);
 }
 
 #undef _T_


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