[gnome-control-center/gnome-3-38] fingerprint-dialog: Don't crash when showing an error during release
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-38] fingerprint-dialog: Don't crash when showing an error during release
- Date: Thu, 7 Jan 2021 20:39:54 +0000 (UTC)
commit ced484cdf11c96c42b9b9f248d17babb25dda126
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Fri Dec 11 01:23:53 2020 +0100
fingerprint-dialog: Don't crash when showing an error during release
We unset the local device early when releasing it, so use the one we
get the callback instead of relying in the private instance that has
been already cleared.
panels/user-accounts/cc-fingerprint-dialog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/user-accounts/cc-fingerprint-dialog.c b/panels/user-accounts/cc-fingerprint-dialog.c
index 874ea73dd..bc69b63ac 100644
--- a/panels/user-accounts/cc-fingerprint-dialog.c
+++ b/panels/user-accounts/cc-fingerprint-dialog.c
@@ -1027,7 +1027,7 @@ release_device_cb (GObject *object,
g_dbus_error_strip_remote_error (error);
error_message = g_strdup_printf (_("Failed to release fingerprint device %s: %s"),
- cc_fprintd_device_get_name (self->device),
+ cc_fprintd_device_get_name (fprintd_device),
error->message);
g_warning ("%s", error_message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]