diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-07-29 15:19:53 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-07-29 15:21:28 +0200 |
commit | ffa66e919af0de937b8683c4a7324400e84d4373 (patch) | |
tree | 6f94430626e7b95ed4033f164bd818f54ee484cf /plugins/novatel.c | |
parent | 3e73ffebff85b187aa88e28e6759fa7527002c8d (diff) | |
download | ofono-ffa66e919af0de937b8683c4a7324400e84d4373.tar.bz2 |
novatel: Fix stale control channel after hot-unplug
Diffstat (limited to 'plugins/novatel.c')
-rw-r--r-- | plugins/novatel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/novatel.c b/plugins/novatel.c index 8f05a857..8f30f46e 100644 --- a/plugins/novatel.c +++ b/plugins/novatel.c @@ -79,6 +79,9 @@ static void novatel_remove(struct ofono_modem *modem) ofono_modem_set_data(modem, NULL); + /* Cleanup after hot-unplug */ + g_at_chat_unref(data->primary); + g_free(data); } |