diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gobi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/gobi.c b/plugins/gobi.c index 7b4cf4e7..bff8eaf3 100644 --- a/plugins/gobi.c +++ b/plugins/gobi.c @@ -82,6 +82,9 @@ static void gobi_remove(struct ofono_modem *modem) ofono_modem_set_data(modem, NULL); + /* Cleanup after hot-unplug */ + g_at_chat_unref(data->chat); + g_free(data); } |