nokia: Fix stale control channel after hot-unplug

This commit is contained in:
Marcel Holtmann 2011-07-29 15:22:51 +02:00
parent ffa66e919a
commit 1b804183a8
1 changed files with 3 additions and 0 deletions

View File

@ -75,6 +75,9 @@ static void nokia_remove(struct ofono_modem *modem)
ofono_modem_set_data(modem, NULL);
/* Cleanup after hot-unplug */
g_at_chat_unref(data->control);
g_free(data);
}