virtual-device: Properly cleanup the virtual devices data

Ensure we call the parent finalize function and cleanup local data
This commit is contained in:
Marco Trevisan (Treviño)
2021-01-24 02:03:20 +01:00
parent e8886dbc6b
commit a291d17f26
2 changed files with 17 additions and 0 deletions
+4
View File
@@ -419,7 +419,11 @@ dev_deinit (FpDevice *dev)
static void
fpi_device_virtual_device_finalize (GObject *object)
{
FpDeviceVirtualDevice *self = FP_DEVICE_VIRTUAL_DEVICE (object);
G_DEBUG_HERE ();
g_clear_pointer (&self->pending_commands, g_ptr_array_unref);
G_OBJECT_CLASS (fpi_device_virtual_device_parent_class)->finalize (object);
}
static void