From ada5d488fa769b4818a17a7042b8aa94ceea1519 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Mon, 25 Nov 2019 18:35:50 +0100 Subject: [PATCH 004/181] synaptics: Correctly unref pointer array The pointer arrays were unref'ed using g_ptr_array_free rather than g_ptr_array_unref from g_clear_pointer. Switch to the correct function. --- libfprint/drivers/synaptics/synaptics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfprint/drivers/synaptics/synaptics.c b/libfprint/drivers/synaptics/synaptics.c index b1d7365..4bac934 100644 --- a/libfprint/drivers/synaptics/synaptics.c +++ b/libfprint/drivers/synaptics/synaptics.c @@ -447,7 +447,7 @@ list_msg_cb (FpiDeviceSynaptics *self, if (error) { - g_clear_pointer (&self->list_result, g_ptr_array_free); + g_clear_pointer (&self->list_result, g_ptr_array_unref); fpi_device_list_complete (FP_DEVICE (self), NULL, error); return; } @@ -468,7 +468,7 @@ list_msg_cb (FpiDeviceSynaptics *self, else { fp_info ("Failed to query enrolled users: %d", resp->result); - g_clear_pointer (&self->list_result, g_ptr_array_free); + g_clear_pointer (&self->list_result, g_ptr_array_unref); fpi_device_list_complete (FP_DEVICE (self), NULL, fpi_device_error_new_msg (FP_DEVICE_ERROR_GENERAL, -- 2.24.1