Commit 84441343 authored by Ghislain MARY's avatar Ghislain MARY

Fix crash because of unref of event.

parent 9abc48cc
...@@ -1138,7 +1138,6 @@ static void register_failure(SalOp *op){ ...@@ -1138,7 +1138,6 @@ static void register_failure(SalOp *op){
if (cfg->long_term_event){ if (cfg->long_term_event){
/*prevent publish to be sent now until registration gets successful*/ /*prevent publish to be sent now until registration gets successful*/
linphone_event_terminate(cfg->long_term_event); linphone_event_terminate(cfg->long_term_event);
linphone_event_unref(cfg->long_term_event);
cfg->long_term_event=NULL; cfg->long_term_event=NULL;
cfg->send_publish=cfg->publish; cfg->send_publish=cfg->publish;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment