[gegl] gegl: remove superfluous g_list_free



commit 3ffb80821a4705be17530d906bc4c5f42b3ad2c4
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri May 1 18:58:49 2020 +0200

    gegl: remove superfluous g_list_free
    
    g_list_free is meant to also work with empty lists, which are NULL,
    doing it here where we know it is NULL though is pointless,
    fixing issue #240.

 gegl/gegl-xml.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/gegl/gegl-xml.c b/gegl/gegl-xml.c
index d2f7e9883..2f0df2351 100644
--- a/gegl/gegl-xml.c
+++ b/gegl/gegl-xml.c
@@ -583,7 +583,6 @@ gegl_node_new_from_xml (const gchar *xmldata,
   pd.refs      = NULL;
   pd.path_root = path_root;
 
-  g_list_free (pd.refs);
   context = g_markup_parse_context_new   (&parser, 0, &pd, NULL);
   success = g_markup_parse_context_parse (context,
                                           xmldata,


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