[glib: 4/10] tests: Fix a memory leak in the resources test
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 4/10] tests: Fix a memory leak in the resources test
- Date: Sun, 20 Feb 2022 12:09:02 +0000 (UTC)
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]