mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
fix(Proxy): remove useless affectation on linphone_nat_policy_ref return
This commit is contained in:
parent
6a5190d947
commit
1cadac2187
1 changed files with 1 additions and 1 deletions
|
|
@ -1538,7 +1538,7 @@ LinphoneNatPolicy * linphone_proxy_config_get_nat_policy(const LinphoneProxyConf
|
|||
|
||||
void linphone_proxy_config_set_nat_policy(LinphoneProxyConfig *cfg, LinphoneNatPolicy *policy) {
|
||||
if (policy != NULL) {
|
||||
policy = linphone_nat_policy_ref(policy); /* Prevent object destruction if the same policy is used */
|
||||
linphone_nat_policy_ref(policy); /* Prevent object destruction if the same policy is used */
|
||||
policy->lc = cfg->lc;
|
||||
}
|
||||
if (cfg->nat_policy != NULL) linphone_nat_policy_unref(cfg->nat_policy);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue