break;
case BLUETOOTH_EVENT_REMOTE_IBEACON_DEVICE_FOUND:
signal = BT_IBEACON_DEVICE_FOUND;
+ break;
case BLUETOOTH_EVENT_PXP_PROPERTY_CHANGED:
signal = BT_PXP_PROPERTY_CHANGED;
break;
g_conn = _bt_gdbus_get_session_gconn();
if (g_conn == NULL) {
BT_ERR("Couldn't connect to session bus");
+ g_free(source_string);
+ g_free(type_string);
return 0;
}
g_pbap_session_proxy = g_dbus_proxy_new_sync(g_conn,
g_conn = _bt_gdbus_get_session_gconn();
if (g_conn == NULL) {
BT_ERR("Couldn't connect to session bus");
+ g_free(source_string);
+ g_free(type_string);
return 0;
}
g_pbap_session_proxy = g_dbus_proxy_new_sync(g_conn,
g_conn = _bt_gdbus_get_session_gconn();
if (g_conn == NULL) {
BT_ERR("Couldn't connect to session bus");
+ g_free(source_string);
+ g_free(type_string);
return 0;
}
g_pbap_session_proxy = g_dbus_proxy_new_sync(g_conn,
g_conn = _bt_gdbus_get_session_gconn();
if (g_conn == NULL) {
BT_ERR("Couldn't connect to session bus");
+ g_free(source_string);
+ g_free(type_string);
return 0;
}
g_pbap_session_proxy = g_dbus_proxy_new_sync(g_conn,
g_conn = _bt_gdbus_get_session_gconn();
if (g_conn == NULL) {
BT_ERR("Couldn't connect to session bus");
+ g_free(source_string);
+ g_free(type_string);
return 0;
}
g_pbap_session_proxy = g_dbus_proxy_new_sync(g_conn,
value_str = _bt_convert_alert_level_to_string(alert_level);
property_str =_bt_convert_property_to_string(property);
- if (value_str == NULL || property_str == NULL)
+ if (value_str == NULL || property_str == NULL) {
+ g_free(property_str);
+ g_free(value_str);
return BLUETOOTH_ERROR_INTERNAL;
+ }
proxy = g_dbus_proxy_new_sync(conn, G_DBUS_PROXY_FLAGS_NONE,
NULL, BT_BLUEZ_NAME,