[glib] tests: Fix some minor memory leaks in gdbus-test-codegen
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] tests: Fix some minor memory leaks in gdbus-test-codegen
- Date: Tue, 28 Nov 2017 14:30:29 +0000 (UTC)
commit a2a4a10299bfcc4bfd63599a9b4d9e7465516e43
Author: Philip Withnall <withnall endlessm com>
Date: Wed Nov 15 12:27:16 2017 +0000
tests: Fix some minor memory leaks in gdbus-test-codegen
It’s not entirely leak-free, but it’s better than before.
Signed-off-by: Philip Withnall <withnall endlessm com>
https://bugzilla.gnome.org/show_bug.cgi?id=741167
gio/tests/gdbus-test-codegen.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/gdbus-test-codegen.c b/gio/tests/gdbus-test-codegen.c
index c54c7ac..c974d20 100644
--- a/gio/tests/gdbus-test-codegen.c
+++ b/gio/tests/gdbus-test-codegen.c
@@ -897,6 +897,11 @@ check_bar_proxy (FooiGenBar *proxy,
g_assert_no_error (error);
g_assert (ret);
+ g_clear_pointer (&ret_val_string, g_free);
+ g_clear_pointer (&ret_val_objpath, g_free);
+ g_clear_pointer (&ret_val_signature, g_free);
+ g_clear_pointer (&ret_val_bytestring, g_free);
+
error = NULL;
array_of_signatures = g_variant_ref_sink (g_variant_new_parsed ("[@g 'ass', 'git']"));
ret = foo_igen_bar_call_test_non_primitive_types_sync (proxy,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]