Blame SOURCES/0060-fpi-ssm-Clarify-the-ownership-of-error-in-fpi_ssm_ma.patch

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