Clean up technology list when exiting. List may have been populated e.g. by rfkill events. --- src/technology.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/src/technology.c b/src/technology.c index cd4bc6f..8b26af0 100644 --- a/src/technology.c +++ b/src/technology.c @@ -1811,6 +1811,12 @@ void __connman_technology_cleanup(void) { DBG(""); + while (technology_list) { + struct connman_technology *technology = technology_list->data; + technology_list = g_slist_remove(technology_list, technology); + technology_put(technology); + } + g_hash_table_destroy(rfkill_list); dbus_connection_unref(connection); -- 1.9.1 _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman