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

index ef1a33a..92642ea 100644 (file)
@@ -79,6 +79,9 @@ static void zte_remove(struct ofono_modem *modem)
 
        ofono_modem_set_data(modem, NULL);
 
+       /* Cleanup after hot-unplug */
+       g_at_chat_unref(data->aux);
+
        g_free(data);
 }