[gnome-control-center] user-accounts: don't crash when closing fingerprint dialog
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: don't crash when closing fingerprint dialog
- Date: Wed, 17 Dec 2014 11:34:46 +0000 (UTC)
commit af93bb814eefb3a6b28e8c6125c0fe29d7391744
Author: Ondrej Holy <oholy redhat com>
Date: Wed Dec 17 11:06:35 2014 +0100
user-accounts: don't crash when closing fingerprint dialog
Enroll data are used after destroying when closing dialog. It causes
crash while setting label. Therefor we have to store the pointer for
fingerprint button and use it to set the label after destroying the
data.
https://bugzilla.gnome.org/show_bug.cgi?id=741635
panels/user-accounts/um-fingerprint-dialog.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/user-accounts/um-fingerprint-dialog.c b/panels/user-accounts/um-fingerprint-dialog.c
index 04e96b3..04a85ba 100644
--- a/panels/user-accounts/um-fingerprint-dialog.c
+++ b/panels/user-accounts/um-fingerprint-dialog.c
@@ -420,8 +420,10 @@ finger_combobox_changed (GtkComboBox *combobox, EnrollData *data)
static void
assistant_cancelled (GtkAssistant *ass, EnrollData *data)
{
+ GtkWidget *editable_button = data->editable_button;
+
enroll_data_destroy (data);
- set_fingerprint_label (data->editable_button);
+ set_fingerprint_label (editable_button);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]