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:
parent
4cf5f92a52
commit
b3c5fe4b82
1 changed files with 3 additions and 1 deletions
|
@ -983,7 +983,9 @@ enroll_stop_deinit_cb (FpiSsm *ssm, FpDevice *dev, GError *error)
|
||||||
if (error)
|
if (error)
|
||||||
fp_warn ("Error deinitializing: %s", error->message);
|
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
|
static void
|
||||||
|
|
Loading…
Reference in a new issue