Hi Samuel, > What about this: > > diff --git a/src/device.c b/src/device.c > index e5bd84d..a3718a9 100644 > --- a/src/device.c > +++ b/src/device.c > @@ -1117,11 +1117,13 @@ int connman_device_remove_network(struct > connman_device > service = __connman_service_lookup_from_network(network); > > identifier = connman_network_get_identifier(network); > - g_hash_table_remove(device->networks, identifier); > + g_hash_table_steal(device->networks, identifier); > > if (service != NULL) > __connman_service_reset_from_networks(service, > device->networks) > > + free_network(network); > + > return 0; > }
That should also do the trick. I like :) cheers, daniel _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
