gegl r2195 - in trunk: . gegl



Author: ok
Date: Fri Apr 18 22:08:32 2008
New Revision: 2195
URL: http://svn.gnome.org/viewvc/gegl?rev=2195&view=rev

Log:
* gegl/gegl-utils.c: (gegl_free): start looking for free marker one
byte in front of allocation.


Modified:
   trunk/ChangeLog
   trunk/gegl/gegl-utils.c

Modified: trunk/gegl/gegl-utils.c
==============================================================================
--- trunk/gegl/gegl-utils.c	(original)
+++ trunk/gegl/gegl-utils.c	Fri Apr 18 22:08:32 2008
@@ -296,6 +296,9 @@
 void *
 gegl_malloc (gsize size);
 
+/* utility call that makes sure allocations are 16 byte aligned.
+ * making RGBA float buffers have aligned access for pixels.
+ */ 
 void *
 gegl_malloc (gsize size)
 {
@@ -319,7 +322,12 @@
 gegl_free (void *buf)
 {
   gchar *p = buf;
+  g_assert (buf);
+  p--;
   while (*p!='G')
+    {
+      g_assert (*p==' ');
+    }
    p--;
   g_free (p);
 }



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