[gimp] Issze #1711 - GIMP does not unref all GLocalFileEnumerator it uses



commit ca3ffec111d1248d0a189483c6cc9eacf9ec4d76
Author: Michael Natterer <mitch gimp org>
Date:   Sun Jun 24 14:14:07 2018 +0200

    Issze #1711 - GIMP does not unref all GLocalFileEnumerator it uses
    
    unref the enumerator when done. Spotted by Massimo.

 app/text/gimpfontfactory.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/app/text/gimpfontfactory.c b/app/text/gimpfontfactory.c
index 3715ca4e97..7fba37cfeb 100644
--- a/app/text/gimpfontfactory.c
+++ b/app/text/gimpfontfactory.c
@@ -457,12 +457,15 @@ gimp_font_factory_recursive_add_fontdir (FcConfig  *config,
                         }
                     }
                 }
+
               g_free (path);
             }
 
           g_object_unref (child);
           g_object_unref (info);
         }
+
+      g_object_unref (enumerator);
     }
   else
     {
@@ -485,6 +488,7 @@ gimp_font_factory_recursive_add_fontdir (FcConfig  *config,
               g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
                            "- %s%s", path, G_DIR_SEPARATOR_S);
             }
+
           g_free (path);
         }
     }


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