[glib: 3/4] tests: Fix GVariantType leak in GAction tests



commit b7571d5f0f951309c4680745e8c8f500a62dda2c
Author: Tomasz Miąsko <tomasz miasko gmail com>
Date:   Thu Nov 1 00:00:00 2018 +0000

    tests: Fix GVariantType leak in GAction tests

 gio/tests/actions.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gio/tests/actions.c b/gio/tests/actions.c
index 8b5339e4d..4c7cd3a05 100644
--- a/gio/tests/actions.c
+++ b/gio/tests/actions.c
@@ -1040,6 +1040,8 @@ test_property_actions (void)
   g_assert_cmpstr (name, ==, "keepalive");
   g_assert (enabled);
   g_free (name);
+  g_variant_type_free (ptype);
+  g_variant_type_free (stype);
   g_variant_unref (state);
 
   g_action_map_add_action (G_ACTION_MAP (group), G_ACTION (action));


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