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:
Benjamin Berg 2019-11-25 18:35:50 +01:00
parent b16245ad58
commit ada5d488fa

View file

@ -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,