From bacf3bbc100092ef21124de31459b412db9ff8c1 Mon Sep 17 00:00:00 2001 From: Simon Morlat <simon.morlat@linphone.org> Date: Wed, 12 May 2010 09:23:15 +0200 Subject: [PATCH] fix bug with SalMediaDescription not ref'd --- coreapi/callbacks.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/coreapi/callbacks.c b/coreapi/callbacks.c index a4c2d510aa..f15404dbf8 100644 --- a/coreapi/callbacks.c +++ b/coreapi/callbacks.c @@ -227,8 +227,11 @@ static void call_updated(SalOp *op){ if (call->resultdesc) sal_media_description_unref(call->resultdesc); call->resultdesc=sal_call_get_final_media_description(op); - if (call->resultdesc && !sal_media_description_empty(call->resultdesc)){ - linphone_connect_incoming(lc,call); + if (call->resultdesc){ + sal_media_description_ref(call->resultdesc); + if (sal_media_description_empty(call->resultdesc)){ + linphone_connect_incoming(lc,call); + } } } -- GitLab