gio: GPollFileMonitor is not cleaning up correctly

https://bugzilla.gnome.org/show_bug.cgi?id=789820
This commit is contained in:
Tomas Kotal 2017-11-03 14:36:41 +01:00 committed by Philip Withnall
parent a6fc4daeb9
commit ea2901abf8

View File

@ -145,7 +145,8 @@ poll_file_timeout (gpointer data)
{
GPollFileMonitor* poll_monitor = data;
poll_monitor->timeout = FALSE;
g_source_unref (poll_monitor->timeout);
poll_monitor->timeout = NULL;
g_file_query_info_async (poll_monitor->file, G_FILE_ATTRIBUTE_ETAG_VALUE "," G_FILE_ATTRIBUTE_STANDARD_SIZE,
0, 0, NULL, got_new_info, g_object_ref (poll_monitor));