kerneldevice,generic: plug cached string leaks

Both 'physdev_subsystem' and 'interface_description' were leaking.
This commit is contained in:
Aleksander Morgado
2020-11-09 11:54:58 +01:00
parent 5b91e489eb
commit 37b3771ef5

View File

@@ -1046,13 +1046,15 @@ dispose (GObject *object)
{
MMKernelDeviceGeneric *self = MM_KERNEL_DEVICE_GENERIC (object);
g_clear_pointer (&self->priv->physdev_product, g_free);
g_clear_pointer (&self->priv->physdev_manufacturer, g_free);
g_clear_pointer (&self->priv->physdev_sysfs_path, g_free);
g_clear_pointer (&self->priv->interface_sysfs_path, g_free);
g_clear_pointer (&self->priv->sysfs_path, g_free);
g_clear_pointer (&self->priv->driver, g_free);
g_clear_pointer (&self->priv->rules, g_array_unref);
g_clear_pointer (&self->priv->physdev_product, g_free);
g_clear_pointer (&self->priv->physdev_manufacturer, g_free);
g_clear_pointer (&self->priv->physdev_subsystem, g_free);
g_clear_pointer (&self->priv->physdev_sysfs_path, g_free);
g_clear_pointer (&self->priv->interface_description, g_free);
g_clear_pointer (&self->priv->interface_sysfs_path, g_free);
g_clear_pointer (&self->priv->sysfs_path, g_free);
g_clear_pointer (&self->priv->driver, g_free);
g_clear_pointer (&self->priv->rules, g_array_unref);
g_clear_object (&self->priv->properties);
G_OBJECT_CLASS (mm_kernel_device_generic_parent_class)->dispose (object);