From 43129f229bc970209695c9438bc70377ed085f1b Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Tue, 11 Sep 2018 18:32:28 +0200 Subject: Free afb call sync json returned object in Hal-Bt Free forgotten application framework call sync json returned object in Hal-Bt plugin. Change-Id: Ic9680fd735154b21839fad93b4d13a7609009866 Signed-off-by: Jonathan Aillet --- plugins/lib/bluetooth/hal-bt-mixer-link.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/lib/bluetooth/hal-bt-mixer-link.c') diff --git a/plugins/lib/bluetooth/hal-bt-mixer-link.c b/plugins/lib/bluetooth/hal-bt-mixer-link.c index 714c4e8..abbd1b7 100644 --- a/plugins/lib/bluetooth/hal-bt-mixer-link.c +++ b/plugins/lib/bluetooth/hal-bt-mixer-link.c @@ -65,9 +65,12 @@ int HalBtMixerLinkSetBtStreamingSettings(AFB_ApiT apiHandle, char *mixerApiName, returnedError ? returnedError : "no_error_string", MIXER_SET_STREAMED_BT_DEVICE_VERB, mixerApiName); + json_object_put(returnedJ); return -4; } + json_object_put(returnedJ); + if(btStreamStatus) AFB_ApiInfo(apiHandle, "Bluetooth streamed device changed to hci='%s' address='%s'", hci, btAddress); else -- cgit 1.2.3-korg