Fix crash because of unref of event.

This commit is contained in:
Ghislain MARY 2017-05-18 15:11:17 +02:00
parent 9abc48cc94
commit 84441343ad

View file

@ -1138,7 +1138,6 @@ static void register_failure(SalOp *op){
if (cfg->long_term_event){
/*prevent publish to be sent now until registration gets successful*/
linphone_event_terminate(cfg->long_term_event);
linphone_event_unref(cfg->long_term_event);
cfg->long_term_event=NULL;
cfg->send_publish=cfg->publish;
}