hfp_ag: Be extra pedantic on plugin cleanup
authorDenis Kenzior <denkenz@gmail.com>
Tue, 19 Apr 2011 21:49:33 +0000 (16:49 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 19 Apr 2011 21:49:33 +0000 (16:49 -0500)
plugins/hfp_ag.c

index f6f8718..17751ad 100644 (file)
@@ -165,6 +165,7 @@ static int hfp_ag_init()
 static void hfp_ag_exit()
 {
        __ofono_modemwatch_remove(modemwatch_id);
+       g_list_free(modems);
 
        if (server) {
                bluetooth_unregister_server(server);