Commit 3f7c1446 authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Benjamin Otte

Remove the dir_thaw_source while disposing the model

Otherwise that timeout may trigger after the model has died.
Signed-off-by: default avatarFederico Mena Quintero <>
parent 30016185
......@@ -830,6 +830,12 @@ gtk_file_system_model_dispose (GObject *object)
GtkFileSystemModel *model = GTK_FILE_SYSTEM_MODEL (object);
if (model->dir_thaw_source)
g_source_remove (model->dir_thaw_source);
model->dir_thaw_source = 0;
g_cancellable_cancel (model->cancellable);
if (model->dir_monitor)
g_file_monitor_cancel (model->dir_monitor);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment