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:
Ondrej Holy 2014-12-17 11:06:35 +01:00
parent 50e014d39e
commit af93bb814e

View file

@ -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