tests: Add a reference to the enrolled print before returning it

This commit is contained in:
Marco Trevisan (Treviño)
2019-12-17 03:28:12 +01:00
parent c8e1269f61
commit 0566f82219
2 changed files with 8 additions and 4 deletions

View File

@@ -77,7 +77,9 @@ fpi_device_fake_enroll (FpDevice *device)
fpi_device_get_enroll_data (device, &print);
fake_dev->last_called_function = fpi_device_fake_enroll;
fpi_device_enroll_complete (device, print, fake_dev->ret_error);
fpi_device_enroll_complete (device,
print ? g_object_ref (print) : NULL,
fake_dev->ret_error);
}
static void