Fix memory leak

This commit is contained in:
Denis Kenzior 2009-06-12 19:40:51 -05:00
parent 3c27dae5e8
commit 3a7164c0e7
1 changed files with 3 additions and 0 deletions

View File

@ -820,5 +820,8 @@ void at_sms_exit(struct ofono_modem *modem)
if (!at->sms)
return;
sms_destroy(at->sms);
at->sms = NULL;
ofono_sms_manager_unregister(modem);
}