diff --git a/plugins/speedup.c b/plugins/speedup.c index 16ae4fa2..b617699d 100644 --- a/plugins/speedup.c +++ b/plugins/speedup.c @@ -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); }