[bluetooth] fix missed delete
authorpius.lee <pius.lee@samsung.com>
Wed, 3 Jun 2015 13:33:20 +0000 (22:33 +0900)
committerpius.lee <pius.lee@samsung.com>
Fri, 5 Jun 2015 02:10:24 +0000 (11:10 +0900)
Change-Id: Ie9974d16b0cdb54efbbe0120c1bde38e793706f9

src/bluetooth/bluetooth_gatt_service.cc

index 5f79f74..2995fcd 100755 (executable)
@@ -366,6 +366,7 @@ void BluetoothGATTService::ReadValue(const picojson::value& args,
   int ret = bt_gatt_client_read_value(handle, read_value, (void*)user_data);
   if (BT_ERROR_NONE != ret) {
     LOGE("Couldn't register callback for read value");
+    delete user_data;
   }
   ReportSuccess(out);
 }