[gimp] app: replace a g_free_error() by g_clear_error().



commit 7e3cab147591ec2da8c21af65aea30249efca011
Author: Jehan <jehan girinstud io>
Date:   Tue Oct 12 19:05:41 2021 +0200

    app: replace a g_free_error() by g_clear_error().
    
    As a review fix of MR !470 since the contributor Andrzej Hunt is
    unfortunately not responding.

 app/core/gimptagcache.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/app/core/gimptagcache.c b/app/core/gimptagcache.c
index f7b840e722..349cd1c3f5 100644
--- a/app/core/gimptagcache.c
+++ b/app/core/gimptagcache.c
@@ -511,10 +511,7 @@ gimp_tag_cache_load (GimpTagCache *cache)
     {
       g_printerr ("Failed to parse tag cache: %s\n",
                   error ? error->message : "WTF unknown error");
-      if (error)
-        {
-          g_error_free (error);
-        }
+      g_clear_error (&error);
     }
 
   g_object_unref (file);


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