Skip to content

Resolve "Use-after-free crash in `thaw_updates()`"

file-system-model: Avoid use-after free

This is a possible fix for https://gitlab.gnome.org/GNOME/gtk/-/issues/2657

Use a NULL return from g_file_query_info_finish() to detect cancellation
of the query, and avoid derferencing a stale pointer.

file-system-model: Refactor a helper

Push more common code into the helper for
gtk_file_system_model_query_done() and
gtk_file_system_model_one_query_done().

Closes #2657

Merge request reports