[glib: 4/10] tests: Fix a memory leak in the resources test




commit d007fdb0799b96071ba85810c17dbc115bdca2a8
Author: Philip Withnall <pwithnall endlessos org>
Date:   Fri Feb 18 02:32:59 2022 +0000

    tests: Fix a memory leak in the resources test
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 gio/tests/resources.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gio/tests/resources.c b/gio/tests/resources.c
index 633c2f528..7ba5896a0 100644
--- a/gio/tests/resources.c
+++ b/gio/tests/resources.c
@@ -762,6 +762,8 @@ test_resource_module (void)
       g_assert_false (found);
       g_assert_error (error, G_RESOURCE_ERROR, G_RESOURCE_ERROR_NOT_FOUND);
       g_clear_error (&error);
+
+      g_clear_object (&module);
     }
 }
 


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