fix ugly crash

This commit is contained in:
Simon Morlat 2015-11-07 13:35:08 +01:00
parent 85a9b9f016
commit 9b97d8d398

View file

@ -1889,12 +1889,14 @@ void linphone_notify_recv(LinphoneCore *lc, SalOp *op, SalSubscribeStatus ss, Sa
}
if (ss==SalSubscribeTerminated){
if (lf){
sal_op_release(lf->outsub);
lf->outsub=NULL;
lf->subscribe_active=FALSE;
if (lf->outsub != op){
sal_op_release(op);
}
if (lf->outsub){
sal_op_release(lf->outsub);
lf->outsub=NULL;
}
lf->subscribe_active=FALSE;
}else{
sal_op_release(op);
}