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
This commit is contained in:
parent
50e014d39e
commit
af93bb814e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue