[gegl] Use g_slice_new0() for GeglLookup so the tables don't contain garbage



commit 60828682515d345023a3ffacaf39cc46cb874cad
Author: Michael Natterer <mitch gimp org>
Date:   Thu Dec 3 17:07:02 2009 +0100

    Use g_slice_new0() for GeglLookup so the tables don't contain garbage

 gegl/gegl-lookup.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gegl/gegl-lookup.c b/gegl/gegl-lookup.c
index 4ed9110..b11694f 100644
--- a/gegl/gegl-lookup.c
+++ b/gegl/gegl-lookup.c
@@ -23,10 +23,11 @@
 #include "gegl.h"
 #include "gegl-lookup.h"
 
-GeglLookup *gegl_lookup_new  (GeglLookupFunction *function,
-                              gpointer            data)
+GeglLookup *
+gegl_lookup_new (GeglLookupFunction *function,
+                 gpointer            data)
 {
-  GeglLookup *lookup = g_slice_new (GeglLookup);
+  GeglLookup *lookup = g_slice_new0 (GeglLookup);
   lookup->function = function;
   lookup->data = data;
   return lookup;



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