diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-07-29 15:12:59 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-07-29 15:20:53 +0200 |
commit | d998989e9c0da2c27eb1c25c6fc76a787ea0a3aa (patch) | |
tree | 2045a2e48cfab4f403deae617cedbc297c304634 /plugins/huawei.c | |
parent | 43c5b442b22b40289e5f03e4077fc606e94476cb (diff) | |
download | ofono-d998989e9c0da2c27eb1c25c6fc76a787ea0a3aa.tar.bz2 |
huawei: Fix stale PCUI channel after hot-unplug
Diffstat (limited to 'plugins/huawei.c')
-rw-r--r-- | plugins/huawei.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/huawei.c b/plugins/huawei.c index 888f63b8..13803692 100644 --- a/plugins/huawei.c +++ b/plugins/huawei.c @@ -104,6 +104,9 @@ static void huawei_remove(struct ofono_modem *modem) ofono_modem_set_data(modem, NULL); + /* Cleanup after hot-unplug */ + g_at_chat_unref(data->pcui); + g_free(data); } |