mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
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:
parent
37d9b0c699
commit
a2a4a10299
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user