fix crash when LinphoneConference object is created from wrapper.

This commit is contained in:
Simon Morlat 2017-05-18 14:20:50 +02:00
parent 6ded1d490d
commit 9abc48cc94

View file

@ -7085,6 +7085,7 @@ LinphoneStatus linphone_core_add_to_conference(LinphoneCore *lc, LinphoneCall *c
LinphoneConferenceParams *params = linphone_conference_params_new(lc);
conference = linphone_core_create_conference_with_params(lc, params);
linphone_conference_params_unref(params);
linphone_conference_unref(conference); /*actually linphone_core_create_conference_with_params() takes a ref for lc->conf_ctx */
}
if(conference) return linphone_conference_add_participant(lc->conf_ctx, call);
else return -1;