From ed5339c4f5bbd80ac79b98ef21d8924af61b400d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 14 Dec 2020 18:13:53 +0100 Subject: [PATCH] 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. --- libfprint/drivers/vfs5011.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfprint/drivers/vfs5011.c b/libfprint/drivers/vfs5011.c index ffc0680..2d5b0b9 100644 --- a/libfprint/drivers/vfs5011.c +++ b/libfprint/drivers/vfs5011.c @@ -821,7 +821,7 @@ dev_close (FpImageDevice *dev) 0, 0, &error); 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); }