GIMP does not unref all GLocalFileEnumerator it uses
With a GLIB built with --enable-debug, running gimp-console-2.10 like this
$ GOBJECT_DEBUG=objects gimp-console-2.10 -b '(gimp-fonts-refresh)(gimp-fonts-refresh)(gimp-quit 1)' |& grep Enumerator
prints:
GLib-GObject-Message: 07:34:21.552: [0x2a28b50] stale GLocalFileEnumerator ref_count=1
GLib-GObject-Message: 07:34:21.564: [0x3b1c8e0] stale GLocalFileEnumerator ref_count=1
GLib-GObject-Message: 07:34:21.568: [0x3b1ca60] stale GLocalFileEnumerator ref_count=1
GLib-GObject-Message: 07:34:21.570: [0x3b1cb20] stale GLocalFileEnumerator ref_count=1
GLib-GObject-Message: 07:34:21.572: [0x3b1cbe0] stale GLocalFileEnumerator ref_count=1
GLib-GObject-Message: 07:34:21.573: [0x3b1cca0] stale GLocalFileEnumerator ref_count=1
The number of lines output grows with the number of (gimp-fonts-refresh) executed.
The 'enumerator' not unreffed is here:
https://gitlab.gnome.org/GNOME/gimp/blob/master/app/text/gimpfontfactory.c#L394