mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 08:39:20 +00:00
fix ugly crash
This commit is contained in:
parent
85a9b9f016
commit
9b97d8d398
1 changed files with 5 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue