linphone_event_unref(cfg->presence_publish_event);/*probably useless as cfg->long_term_event is already unref in linphone_proxy_config_notify_publish_state_changed. To be check with Ghislain*/
BC_ASSERT_EQUAL(marie->stat.number_of_LinphonePublishCleared,1,int,"%i");/*yes it is 3 because when we change the expires, a new LinphoneEvent is created*/