diff --git a/libfprint/fp-device.c b/libfprint/fp-device.c index b2190bd..c9d1b89 100644 --- a/libfprint/fp-device.c +++ b/libfprint/fp-device.c @@ -2344,6 +2344,8 @@ fpi_device_enroll_progress (FpDevice *device, } if (error) g_error_free (error); + + g_clear_object (&print); } diff --git a/libfprint/fp-device.h b/libfprint/fp-device.h index 821514d..4785064 100644 --- a/libfprint/fp-device.h +++ b/libfprint/fp-device.h @@ -113,7 +113,7 @@ GQuark fp_device_error_quark (void); * FpEnrollProgress: * @device: a #FpDevice * @completed_stages: Number of completed stages - * @print: (nullable): The last scaned print + * @print: (nullable) (transfer none): The last scaned print * @user_data: (nullable): User provided data * @error: (nullable) (transfer none): #GError or %NULL *