speedup: Fix stale control channel after hot-unplug
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 29 Jul 2011 13:17:06 +0000 (15:17 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 29 Jul 2011 13:21:25 +0000 (15:21 +0200)
plugins/speedup.c

index 16ae4fa..b617699 100644 (file)
@@ -77,6 +77,9 @@ static void speedup_remove(struct ofono_modem *modem)
 
        ofono_modem_set_data(modem, NULL);
 
+       /* Cleanup after hot-unplug */
+       g_at_chat_unref(data->aux);
+
        g_free(data);
 }