RET_ERR_IF_PARAMETER_IS_NOT_VALID(adv_service, __ASP_LOG_FUNC_END__);
AspAdvert *service = new AspAdvert;
-
- if (!service) {
- ASP_LOGE("malloc() failed!!!.");
- __ASP_LOG_FUNC_END__;
- return ASP_ERROR_OUT_OF_MEMORY;
- }
ASP_LOGD("service [%p]", service);
if (instance_name) {
}
AspSession *service = new AspSession(service_mac, adv_id);
- if (!service) {
- __ASP_LOG_FUNC_END__;
- return ASP_ERROR_OUT_OF_MEMORY;
- }
ASP_LOGD("service [%p]", service);
addSessionToServiceList(service);
__clear_asp_variant(variant);
AspSession *service = new AspSession(session_mac, session_id, adv_id);
- if (!service) {
- ASP_LOGE("malloc() failed!!!.");
- g_variant_unref(reply);
- return ASP_ERROR_OUT_OF_MEMORY;
- }
ASP_LOGD("service [%p]", service);
*session = service;