mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 06:38:08 +00:00
tunnel: fix some leaks
This commit is contained in:
parent
c2a77c9533
commit
f13fb7a90c
2 changed files with 2 additions and 0 deletions
|
|
@ -198,6 +198,7 @@ static void linphone_tunnel_refresh_config(LinphoneTunnel *tunnel) {
|
|||
while(old_list != NULL) {
|
||||
LinphoneTunnelConfig *tunnel_config = (LinphoneTunnelConfig *)old_list->data;
|
||||
linphone_tunnel_add_server_intern(tunnel, tunnel_config);
|
||||
linphone_tunnel_config_unref(tunnel_config);
|
||||
old_list = old_list->next;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,6 +99,7 @@ static void call_with_tunnel_base(LinphoneTunnelMode tunnel_mode, bool_t with_si
|
|||
linphone_tunnel_add_server(tunnel, config);
|
||||
linphone_tunnel_set_mode(tunnel, tunnel_mode);
|
||||
linphone_tunnel_enable_sip(tunnel, with_sip);
|
||||
linphone_tunnel_config_unref(config);
|
||||
|
||||
/*
|
||||
* Enabling the tunnel with sip cause another REGISTER to be made.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue