Blame SOURCES/0004-synaptics-Correctly-unref-pointer-array.patch

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