[gnome-control-center] fingerprint-dialog: Don't crash when showing an error during release
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] fingerprint-dialog: Don't crash when showing an error during release
- Date: Fri, 11 Dec 2020 17:51:24 +0000 (UTC)
commit 5a7b9e09bf627d5d8c65d70b98ce7a008cab4c33
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 6d18fdf59..a7a4dfc61 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]