libmm-glib,modem: init/clear ports mutex

This commit is contained in:
Aleksander Morgado
2017-01-04 13:45:38 +01:00
parent 094fea5392
commit 2f12d96fe4
+2
View File
@@ -2987,6 +2987,7 @@ mm_modem_init (MMModem *self)
g_mutex_init (&self->priv->supported_capabilities_mutex);
g_mutex_init (&self->priv->supported_bands_mutex);
g_mutex_init (&self->priv->current_bands_mutex);
g_mutex_init (&self->priv->ports_mutex);
}
static void
@@ -2999,6 +3000,7 @@ finalize (GObject *object)
g_mutex_clear (&self->priv->supported_capabilities_mutex);
g_mutex_clear (&self->priv->supported_bands_mutex);
g_mutex_clear (&self->priv->current_bands_mutex);
g_mutex_clear (&self->priv->ports_mutex);
if (self->priv->supported_modes)
g_array_unref (self->priv->supported_modes);