avoid double free

This commit is contained in:
Benjamin Reis 2018-03-29 11:00:48 +02:00
parent d7fcc06dd0
commit cbdd2a1005

View file

@ -606,10 +606,9 @@ static void notify(SalSubscribeOp *op, SalSubscribeStatus st, const char *eventn
}
{
LinphoneContent *ct=linphone_content_from_sal_body_handler(body_handler);
if (ct) {
if (ct)
linphone_core_notify_notify_received(lc,lev,eventname,ct);
linphone_content_unref(ct);
}
}
if (out_of_dialog){
/*out of dialog NOTIFY do not create an implicit subscription*/