From e12978f4022e02a6ef9f8a155d177f318e72b7bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 22 Nov 2019 18:25:59 +0100 Subject: [PATCH] fpi-ssm: Clarify the ownership of error in fpi_ssm_mark_failed --- libfprint/fpi-ssm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfprint/fpi-ssm.c b/libfprint/fpi-ssm.c index 931c8fe3..e2cb48a8 100644 --- a/libfprint/fpi-ssm.c +++ b/libfprint/fpi-ssm.c @@ -272,7 +272,7 @@ fpi_ssm_mark_completed (FpiSsm *machine) /** * fpi_ssm_mark_failed: * @machine: an #FpiSsm state machine - * @error: a #GError + * @error: (transfer full): a #GError * * Mark a state machine as failed with @error as the error code, completing it. */ @@ -288,7 +288,7 @@ fpi_ssm_mark_failed (FpiSsm *machine, GError *error) } fp_dbg ("SSM failed in state %d with error: %s", machine->cur_state, error->message); - machine->error = error; + machine->error = g_steal_pointer (&error); fpi_ssm_mark_completed (machine); }