summaryrefslogtreecommitdiff
path: root/drivers/qmimodem/radio-settings.c
diff options
context:
space:
mode:
authorJonas Bonn <jonas@southpole.se>2018-03-07 15:55:10 +0100
committerDenis Kenzior <denkenz@gmail.com>2018-03-07 10:13:32 -0600
commitb4aff8549dbbf5ec863b66876ed42a15c45f2bc3 (patch)
tree75e369c8bf7f6fd3336e0745a16ee588c64b3b39 /drivers/qmimodem/radio-settings.c
parent924f37b4b5819d07320a7942e976baf6a65013f7 (diff)
downloadofono-b4aff8549dbbf5ec863b66876ed42a15c45f2bc3.tar.gz
qmimodem: release DMS service on radio-settings atom removal
Diffstat (limited to 'drivers/qmimodem/radio-settings.c')
-rw-r--r--drivers/qmimodem/radio-settings.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/qmimodem/radio-settings.c b/drivers/qmimodem/radio-settings.c
index aa8e0d5c..36ad25cf 100644
--- a/drivers/qmimodem/radio-settings.c
+++ b/drivers/qmimodem/radio-settings.c
@@ -277,6 +277,9 @@ static void qmi_radio_settings_remove(struct ofono_radio_settings *rs)
ofono_radio_settings_set_data(rs, NULL);
+ qmi_service_unregister_all(data->dms);
+ qmi_service_unref(data->dms);
+
qmi_service_unregister_all(data->nas);
qmi_service_unref(data->nas);