[PATCH] libmm-glib: fix a memory leak of GMutex

Ben Chan benchan at chromium.org
Mon Jun 2 13:35:43 PDT 2014


---
 libmm-glib/mm-modem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libmm-glib/mm-modem.c b/libmm-glib/mm-modem.c
index 3274a44..5221c2d 100644
--- a/libmm-glib/mm-modem.c
+++ b/libmm-glib/mm-modem.c
@@ -2986,6 +2986,7 @@ finalize (GObject *object)
 
     g_mutex_clear (&self->priv->unlock_retries_mutex);
     g_mutex_clear (&self->priv->supported_modes_mutex);
+    g_mutex_clear (&self->priv->supported_capabilities_mutex);
     g_mutex_clear (&self->priv->supported_bands_mutex);
     g_mutex_clear (&self->priv->current_bands_mutex);
 
-- 
1.9.1.423.g4596e3a



More information about the ModemManager-devel mailing list