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:
parent
b16245ad58
commit
ada5d488fa
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue