diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-06-24 21:23:10 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2018-08-12 14:46:34 +0200 |
commit | 9f0989ce617f572433841492d06efcf6dbcb9f67 (patch) | |
tree | a42be819dba85c6a8edce3983aa543af28af850b | |
parent | 85f2d5fa7342196681db3030de7f1ba562ab264c (diff) |
libqmi-glib,device: don't leak the inner MbimDevice
(cherry picked from commit 29b43a7d0fb413909132011fac4afe91822e7375)
-rw-r--r-- | src/libqmi-glib/qmi-device.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libqmi-glib/qmi-device.c b/src/libqmi-glib/qmi-device.c index c793171..89a5ee5 100644 --- a/src/libqmi-glib/qmi-device.c +++ b/src/libqmi-glib/qmi-device.c @@ -3056,6 +3056,14 @@ dispose (GObject *object) (GHRFunc)foreach_warning, self); +#if defined MBIM_QMUX_ENABLED + if (self->priv->mbimdev) { + g_warning ("[%s] MBIM device wasn't explicitly closed", + self->priv->path_display); + g_clear_object (&self->priv->mbimdev); + } +#endif + if (self->priv->sync_indication_id && self->priv->client_ctl) { g_signal_handler_disconnect (self->priv->client_ctl, |