tech_pvt->session = session;
tech_pvt->home = su_home_new(sizeof(*tech_pvt->home));
- su_home_init(tech_pvt->home);
switch_core_session_set_private(session, tech_pvt);
switch_clear_flag_locked(tech_pvt, TFLAG_IO);
if (tech_pvt->home) {
- su_home_deinit(tech_pvt->home);
+ su_home_unref(tech_pvt->home);
tech_pvt->home = NULL;
}
profile->s_root = su_root_create(NULL);
profile->home = su_home_new(sizeof(*profile->home));
- su_home_init(profile->home);
profile->nua = nua_create(profile->s_root, /* Event loop */
event_callback, /* Callback for processing events */
}
unreg(profile);
- su_home_deinit(profile->home);
+ su_home_unref(profile->home);
if (switch_event_create(&s_event, SWITCH_EVENT_UNPUBLISH) == SWITCH_STATUS_SUCCESS) {