vfs5011: Unset the recorded rows list when freeing them

Ensure that we unset the rows list when closing the device, so that we
won't try to append to invalid rows list new ones again.
This commit is contained in:
Marco Trevisan (Treviño) 2020-12-14 18:13:53 +01:00
parent 2d10d864d8
commit ed5339c4f5

View file

@ -821,7 +821,7 @@ dev_close (FpImageDevice *dev)
0, 0, &error); 0, 0, &error);
g_free (self->capture_buffer); g_free (self->capture_buffer);
g_slist_free_full (self->rows, g_free); g_slist_free_full (g_steal_pointer (&self->rows), g_free);
fpi_image_device_close_complete (dev, error); fpi_image_device_close_complete (dev, error);
} }