speedup: Fix stale control channel after hot-unplug

This commit is contained in:
Marcel Holtmann 2011-07-29 15:17:06 +02:00
parent e604e5065c
commit 3e73ffebff
1 changed files with 3 additions and 0 deletions

View 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);
}