libmm-glib: fix memleak of MMModem's ports

Fixes: 3206e95663
This commit is contained in:
Thomas Haller
2017-01-04 13:15:31 +01:00
committed by Aleksander Morgado
parent 61dc32a72c
commit 094fea5392

View File

@@ -3008,6 +3008,8 @@ finalize (GObject *object)
g_array_unref (self->priv->supported_bands); g_array_unref (self->priv->supported_bands);
if (self->priv->current_bands) if (self->priv->current_bands)
g_array_unref (self->priv->current_bands); g_array_unref (self->priv->current_bands);
if (self->priv->ports)
g_array_unref (self->priv->ports);
G_OBJECT_CLASS (mm_modem_parent_class)->finalize (object); G_OBJECT_CLASS (mm_modem_parent_class)->finalize (object);
} }