[gnome-builder] glib: force close enumerator



commit 8ba40c3b9dac2ab0bb228923f29fbf4554bdaa43
Author: Christian Hergert <chergert redhat com>
Date:   Tue Aug 7 14:29:49 2018 -0700

    glib: force close enumerator

 src/libide/util/ide-glib.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/libide/util/ide-glib.c b/src/libide/util/ide-glib.c
index 32bd48d67..a329c8954 100644
--- a/src/libide/util/ide-glib.c
+++ b/src/libide/util/ide-glib.c
@@ -322,6 +322,8 @@ ide_g_file_get_children_worker (IdeTask      *task,
       g_ptr_array_add (children, g_steal_pointer (&file_info));
     }
 
+  g_file_enumerator_close (enumerator, NULL, NULL);
+
   ide_task_return_pointer (task,
                            g_steal_pointer (&children),
                            (GDestroyNotify) g_ptr_array_unref);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]