Free dtmf timer on call destruction, if needed

This commit is contained in:
Gautier Pelloux-Prayer 2014-11-12 17:32:18 +01:00
parent 8a6a2e4cca
commit a76aa60ff5

View file

@ -1042,11 +1042,15 @@ static void linphone_call_destroy(LinphoneCall *obj)
if (obj->transfer_target){
linphone_call_unref(obj->transfer_target);
}
if (obj->log)
if (obj->log) {
linphone_call_log_unref(obj->log);
}
if (obj->auth_token) {
ms_free(obj->auth_token);
}
if (obj->dtmfs_timer) {
linphone_call_cancel_dtmfs(obj);
}
linphone_call_params_unref(obj->params);
linphone_call_params_unref(obj->current_params);
if (obj->remote_params != NULL) {