diff --git a/coreapi/callbacks.c b/coreapi/callbacks.c index 369513b52..d3bb3b6fb 100644 --- a/coreapi/callbacks.c +++ b/coreapi/callbacks.c @@ -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; }