Commit ba4a9538 authored by Ting-Wei Lan's avatar Ting-Wei Lan Committed by Philip Withnall

gpollfilemonitor: Fix use-after-free caused by leaking GSource

https://bugzilla.gnome.org/show_bug.cgi?id=794528
parent e2c16df4
Pipeline #7274 failed with stage
in 3 minutes and 37 seconds
......@@ -50,7 +50,9 @@ g_poll_file_monitor_finalize (GObject* object)
poll_monitor = G_POLL_FILE_MONITOR (object);
g_poll_file_monitor_cancel (G_FILE_MONITOR (poll_monitor));
g_object_unref (poll_monitor->file);
g_clear_object (&poll_monitor->last_info);
G_OBJECT_CLASS (g_poll_file_monitor_parent_class)->finalize (object);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment