mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 04:36:17 +01:00
gpollfilemonitor: Fix use-after-free caused by leaking GSource
https://bugzilla.gnome.org/show_bug.cgi?id=794528
This commit is contained in:
parent
e2c16df4b5
commit
ba4a9538e1
@ -50,7 +50,9 @@ g_poll_file_monitor_finalize (GObject* object)
|
|||||||
|
|
||||||
poll_monitor = G_POLL_FILE_MONITOR (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_object_unref (poll_monitor->file);
|
||||||
|
g_clear_object (&poll_monitor->last_info);
|
||||||
|
|
||||||
G_OBJECT_CLASS (g_poll_file_monitor_parent_class)->finalize (object);
|
G_OBJECT_CLASS (g_poll_file_monitor_parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user