mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
device: Cleanup session_data on open failure
This commit is contained in:
committed by
Bastien Nocera
parent
aab923e3cd
commit
8a2f276003
@ -603,6 +603,8 @@ static void dev_open_cb(FpDevice *dev, GAsyncResult *res, void *user_data)
|
|||||||
FPRINT_ERROR_INTERNAL,
|
FPRINT_ERROR_INTERNAL,
|
||||||
"Open failed with error: %s", error->message);
|
"Open failed with error: %s", error->message);
|
||||||
dbus_g_method_return_error(session->context_claim_device, dbus_error);
|
dbus_g_method_return_error(session->context_claim_device, dbus_error);
|
||||||
|
g_slice_free(struct session_data, priv->session);
|
||||||
|
priv->session = NULL;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user