gegl r2935 - trunk/gegl/buffer



Author: martinn
Date: Sun Feb 22 16:20:07 2009
New Revision: 2935
URL: http://svn.gnome.org/viewvc/gegl?rev=2935&view=rev

Log:
Fix GEGL_BUFFER_DEBUG_ALLOCATIONS code switching

Modified:
   trunk/gegl/buffer/gegl-buffer.c

Modified: trunk/gegl/buffer/gegl-buffer.c
==============================================================================
--- trunk/gegl/buffer/gegl-buffer.c	(original)
+++ trunk/gegl/buffer/gegl-buffer.c	Sun Feb 22 16:20:07 2009
@@ -71,10 +71,9 @@
 #include "gegl-buffer-index.h"
 #include "gegl-config.h"
 
-/* Set to 1 to print allocation stack traces for leaked GeglBuffers
- * using GNU C libs backtrace_symbols()
+/* #define GEGL_BUFFER_DEBUG_ALLOCATIONS to print allocation stack
+ * traces for leaked GeglBuffers using GNU C libs backtrace_symbols()
  */
-#define GEGL_BUFFER_DEBUG_ALLOCATIONS 0
 #ifdef GEGL_BUFFER_DEBUG_ALLOCATIONS
 #include <execinfo.h>
 #endif
@@ -295,7 +294,9 @@
     }
 }
 
+#ifdef GEGL_BUFFER_DEBUG_ALLOCATIONS
 static GList *allocated_buffers_list = NULL;
+#endif
 static gint   allocated_buffers      = 0;
 static gint   de_allocated_buffers   = 0;
 



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