summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-11-27 11:57:50 -0600
committerDenis Kenzior <denkenz@gmail.com>2010-11-29 07:52:35 -0600
commit8f949a6d8cc929af328884b5f046c9e251e3040a (patch)
tree19fddb38b170710fbebfdd5e3a796080171058c3 /drivers
parentba657bd9ce80c6e75cb2610682c61b50a75cd844 (diff)
downloadofono-8f949a6d8cc929af328884b5f046c9e251e3040a.tar.bz2
atmodem: Forgot to reset sms data on remove
Diffstat (limited to 'drivers')
-rw-r--r--drivers/atmodem/sms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/atmodem/sms.c b/drivers/atmodem/sms.c
index d6683feb..02cd27a1 100644
--- a/drivers/atmodem/sms.c
+++ b/drivers/atmodem/sms.c
@@ -1242,6 +1242,8 @@ static void at_sms_remove(struct ofono_sms *sms)
g_at_chat_unref(data->chat);
g_free(data);
+
+ ofono_sms_set_data(sms, NULL);
}
static struct ofono_sms_driver driver = {