[Bluetooth][OTP] Add object browsing support
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / bt-service-event-receiver.c
index 76989c7..153c6ad 100644 (file)
@@ -44,6 +44,7 @@
 #include "bt-service-opp-client.h"
 #include "bt-service-map-client.h"
 #include "bt-service-tds.h"
+#include "bt-service-otp.h"
 
 #ifdef TIZEN_FEATURE_BT_DPM
 #include "bt-service-dpm.h"
@@ -1709,6 +1710,9 @@ void _bt_handle_gatt_event(GVariant *msg, const char *member, const char *path)
        if (strcasecmp(member, "GattValueChanged") == 0) {
                /* Check TDS seekers waiting for Indication  */
                _bt_tds_check_indication(path, msg);
+#ifdef TIZEN_FEATURE_BT_OTP
+               _bt_otp_check_indication(path, msg);
+#endif
        } else {
                BT_INFO("Unhandled event");
        }
@@ -2292,6 +2296,7 @@ void _bt_handle_device_event(GVariant *msg, const char *member, const char *path
                        ipsp_proxy = _bt_get_ipsp_proxy();
                        if (ipsp_proxy == NULL) {
                                BT_ERR("can not get ipsp proxy");
+                               g_free(address);
                                return;
                        }
 
@@ -2303,6 +2308,7 @@ void _bt_handle_device_event(GVariant *msg, const char *member, const char *path
                        ipsp_proxy = _bt_get_ipsp_proxy();
                        if (ipsp_proxy == NULL) {
                                BT_ERR("can not get ipsp proxy");
+                               g_free(address);
                                return;
                        }