Fix usage of GVariant in "g_dbus_proxy_call_sync" 63/265963/3
authorIlho Kim <ilho159.kim@samsung.com>
Tue, 2 Nov 2021 10:16:03 +0000 (19:16 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Wed, 3 Nov 2021 00:27:40 +0000 (09:27 +0900)
commitaddaa74e08fad5bb7f110ba87e32aab02e5baf44
tree1cd7678f6c429723ea8092bed10c557fd305c504
parentf2b9e9d204fc9866ba8496495f6d516fbf0f215a
Fix usage of GVariant in "g_dbus_proxy_call_sync"

The function "g_dbus_proxy_call_sync" consumes the floating GVariant parameter
So from the second loop, the variable is consumed, causing incorrect memory access
This patch changes GVariant variable from floating reference
to full reference using g_variant_ref_sink

Change-Id: I11f97ee20f72a7540413e60d921950fd0a5cdd90
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
plugin/app2sd/lib/app2sd_client_interface.c