fpcmoc: Transfer error from autoptr before fpi_device_close_complete

Fixed coredump because of trying to free a null space

Change-Id: If5a23ba7b4f307580593712612e150d1ab893826
This commit is contained in:
Haowei Lo
2024-04-17 23:58:37 +08:00
parent 093f2fc0a6
commit b7f3544e98

View File

@@ -387,7 +387,7 @@ fpc_dev_release_interface (FpiDeviceFpcMoc *self,
} }
/* Notify close complete */ /* Notify close complete */
fpi_device_close_complete (FP_DEVICE (self), release_error); fpi_device_close_complete (FP_DEVICE (self), g_steal_pointer (&release_error));
} }
static gboolean static gboolean