mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
egismoc: Fix crash during close
This commit is contained in:
committed by
Marco Trevisan (Treviño)
parent
0b9a64331f
commit
a9269980eb
@@ -1385,26 +1385,10 @@ egismoc_close (FpDevice *device)
|
||||
GError *error = NULL;
|
||||
|
||||
egismoc_cancel (device);
|
||||
g_clear_object (&self->interrupt_cancellable);
|
||||
|
||||
g_usb_device_release_interface (fpi_device_get_usb_device (device), 0, 0, &error);
|
||||
fpi_device_close_complete (device, error);
|
||||
|
||||
if (self->task_ssm)
|
||||
fpi_ssm_free (self->task_ssm);
|
||||
self->task_ssm = NULL;
|
||||
|
||||
if (self->cmd_ssm)
|
||||
fpi_ssm_free (self->cmd_ssm);
|
||||
self->cmd_ssm = NULL;
|
||||
|
||||
self->cmd_transfer = NULL;
|
||||
|
||||
g_clear_object (&self->interrupt_cancellable);
|
||||
|
||||
if (self->enrolled_ids)
|
||||
g_ptr_array_free (self->enrolled_ids, TRUE);
|
||||
self->enrolled_ids = NULL;
|
||||
self->enrolled_num = -1;
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user