libmm-glib,modem: init/clear ports mutex
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user