upekts: Fix ownership transfer to fpi_device_enroll_complete

fpi_device_enroll_complete takes the ownership of the pointers. As such,
they need to be stolen from EnrollStopData.
This commit is contained in:
Benjamin Berg 2020-05-07 18:54:43 +02:00 committed by Benjamin Berg
parent 4cf5f92a52
commit b3c5fe4b82

View file

@ -983,7 +983,9 @@ enroll_stop_deinit_cb (FpiSsm *ssm, FpDevice *dev, GError *error)
if (error)
fp_warn ("Error deinitializing: %s", error->message);
fpi_device_enroll_complete (dev, data->print, data->error);
fpi_device_enroll_complete (dev,
g_steal_pointer (&data->print),
g_steal_pointer (&data->error));
}
static void