[gegl] core: use g_strdup/g_free instead of strdup/free



commit a0b1dfc637131c7c5bc04cf24928c4dbf5340c97
Author: Øyvind Kolås <pippin gimp org>
Date:   Sun Nov 20 16:54:53 2016 +0100

    core: use g_strdup/g_free instead of strdup/free

 gegl/operation/gegl-operation.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/operation/gegl-operation.c b/gegl/operation/gegl-operation.c
index c9de0ee..ede7314 100644
--- a/gegl/operation/gegl-operation.c
+++ b/gegl/operation/gegl-operation.c
@@ -326,7 +326,7 @@ gegl_operation_prepare (GeglOperation *self)
     const gchar *cl_source = gegl_operation_class_get_key (klass, "cl-source");
     if (cl_source)
       {
-        char *name = strdup (klass->name);
+        char *name = g_strdup (klass->name);
         const char *kernel_name[] = {name, NULL};
         char *k;
         for (k=name; *k; k++)
@@ -337,7 +337,7 @@ gegl_operation_prepare (GeglOperation *self)
                 break;
             }
         klass->cl_data = gegl_cl_compile_and_build (cl_source, kernel_name);
-        free (name);
+        g_free (name);
       }
   }
 


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