mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 09:49:26 +00:00
Don't remove hook (done before)
Remove unused variable
This commit is contained in:
parent
92a7d6695c
commit
4b257d3de4
1 changed files with 3 additions and 3 deletions
|
|
@ -237,7 +237,9 @@ int upnp_context_init(LinphoneCore *lc) {
|
|||
|
||||
void upnp_context_uninit(LinphoneCore *lc) {
|
||||
UpnpContext *lupnp = &lc->upnp;
|
||||
linphone_core_remove_iterate_hook(lc, linphone_core_upnp_hook, lc);
|
||||
|
||||
// Not need, all hooks are removed before
|
||||
//linphone_core_remove_iterate_hook(lc, linphone_core_upnp_hook, lc);
|
||||
|
||||
if(lupnp->sip_udp != NULL) {
|
||||
upnp_port_binding_release(lupnp->sip_udp);
|
||||
|
|
@ -738,7 +740,6 @@ MSList *upnp_config_list_port_bindings(struct _LpConfig *lpc) {
|
|||
UpnpPortBinding *port;
|
||||
bool_t valid;
|
||||
MSList *elem;
|
||||
MSList *prev_elem;
|
||||
LpItem *item;
|
||||
LpSection *sec=lp_config_find_section(lpc, UPNP_SECTION_NAME);
|
||||
if(sec == NULL)
|
||||
|
|
@ -767,7 +768,6 @@ MSList *upnp_config_list_port_bindings(struct _LpConfig *lpc) {
|
|||
} else {
|
||||
valid = FALSE;
|
||||
}
|
||||
prev_elem = elem;
|
||||
elem = ms_list_next(elem);
|
||||
if(!valid) {
|
||||
ms_warning("uPnP configuration invalid line: %s", item->key);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue