dun_gw: Be extra pedantic on plugin cleanup

This commit is contained in:
Denis Kenzior 2011-04-19 16:49:12 -05:00
parent a6489e6850
commit 888218680d
1 changed files with 6 additions and 0 deletions

View File

@ -159,6 +159,12 @@ static int dun_gw_init(void)
static void dun_gw_exit(void)
{
__ofono_modemwatch_remove(modemwatch_id);
g_list_free(modems);
if (server) {
bluetooth_unregister_server(server);
server = NULL;
}
}
OFONO_PLUGIN_DEFINE(dun_gw, "Dial-up Networking Profile Plugins", VERSION,