From 9abc48cc943eea9fb6e4f54ca1d9923fa18848ff Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Thu, 18 May 2017 14:20:50 +0200 Subject: [PATCH] fix crash when LinphoneConference object is created from wrapper. --- coreapi/linphonecore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 7a0b53e0d..d6f4cafdf 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -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;