fpi-ssm: Clarify the ownership of error in fpi_ssm_mark_failed
This commit is contained in:
parent
1ba95db379
commit
e12978f402
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue