Do not unref const pointer

This commit is contained in:
Christophe Deschamps 2024-05-22 11:41:47 +02:00
parent 68136b511d
commit 3a60f1c303

View file

@ -1936,10 +1936,9 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) {
}
[self checkLocalNetworkPermission];
// For OutgoingCall, show CallOutgoingView
LinphoneVideoActivationPolicy *policy = linphone_core_get_video_activation_policy(LC);
const LinphoneVideoActivationPolicy *policy = linphone_core_get_video_activation_policy(LC);
BOOL initiateVideoCall = linphone_video_activation_policy_get_automatically_initiate(policy);
[CallManager.instance startCallWithAddr:iaddr isSas:FALSE isVideo:initiateVideoCall isConference:false];
linphone_video_activation_policy_unref(policy);
}
#pragma mark - Misc Functions