mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
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.
This commit is contained in:
@@ -447,7 +447,7 @@ list_msg_cb (FpiDeviceSynaptics *self,
|
|||||||
|
|
||||||
if (error)
|
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);
|
fpi_device_list_complete (FP_DEVICE (self), NULL, error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -468,7 +468,7 @@ list_msg_cb (FpiDeviceSynaptics *self,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
fp_info ("Failed to query enrolled users: %d", resp->result);
|
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),
|
fpi_device_list_complete (FP_DEVICE (self),
|
||||||
NULL,
|
NULL,
|
||||||
fpi_device_error_new_msg (FP_DEVICE_ERROR_GENERAL,
|
fpi_device_error_new_msg (FP_DEVICE_ERROR_GENERAL,
|
||||||
|
|||||||
Reference in New Issue
Block a user