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);
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)
} else {
valid = FALSE;
}
- prev_elem = elem;
elem = ms_list_next(elem);
if(!valid) {
ms_warning("uPnP configuration invalid line: %s", item->key);