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
This commit is contained in:
Philip Withnall 2017-11-15 12:27:16 +00:00
parent 37d9b0c699
commit a2a4a10299

View File

@ -897,6 +897,11 @@ check_bar_proxy (FooiGenBar *proxy,
g_assert_no_error (error); g_assert_no_error (error);
g_assert (ret); 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; error = NULL;
array_of_signatures = g_variant_ref_sink (g_variant_new_parsed ("[@g 'ass', 'git']")); 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, ret = foo_igen_bar_call_test_non_primitive_types_sync (proxy,