mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-05-08 05:28:03 +02:00
device: Clear username on open failure
This commit is contained in:
parent
791a208afd
commit
46b7d7c1a7
1 changed files with 1 additions and 0 deletions
|
|
@ -602,6 +602,7 @@ static void dev_open_cb(FpDevice *dev, GAsyncResult *res, void *user_data)
|
|||
FPRINT_ERROR_INTERNAL,
|
||||
"Open failed with error: %s", error->message);
|
||||
dbus_g_method_return_error(session->context_claim_device, dbus_error);
|
||||
g_clear_pointer(&priv->username, g_free);
|
||||
g_clear_pointer(&priv->session, g_free);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue