mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-10-03 06:25:36 +00:00
properties-window: fix use-after-free on destroy
stop_deep_count_for_file() removes from deep_count_files list https://bugzilla.gnome.org/show_bug.cgi?id=691004
This commit is contained in:
parent
3d27860778
commit
bbc2d59f16
|
@ -5236,11 +5236,9 @@ real_destroy (GtkWidget *object)
|
|||
g_source_remove (window->details->deep_count_spinner_timeout_id);
|
||||
}
|
||||
|
||||
for (l = window->details->deep_count_files; l != NULL; l = l->next) {
|
||||
stop_deep_count_for_file (window, l->data);
|
||||
while (window->details->deep_count_files) {
|
||||
stop_deep_count_for_file (window, window->details->deep_count_files->data);
|
||||
}
|
||||
g_list_free (window->details->deep_count_files);
|
||||
window->details->deep_count_files = NULL;
|
||||
|
||||
window->details->name_field = NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue