Commit 9abc48cc authored by Simon Morlat's avatar Simon Morlat

fix crash when LinphoneConference object is created from wrapper.

parent 6ded1d49
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment