[gtk+] rbtree: Mark all debug sections as debug



commit 69a516018f116a4cc9dc4f47a735a86daf381bbb
Author: Benjamin Otte <otte redhat com>
Date:   Mon Nov 21 16:59:22 2011 +0100

    rbtree: Mark all debug sections as debug

 gtk/gtkrbtree.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkrbtree.c b/gtk/gtkrbtree.c
index 33cb6d2..53faea2 100644
--- a/gtk/gtkrbtree.c
+++ b/gtk/gtkrbtree.c
@@ -64,6 +64,7 @@ _gtk_rbnode_new (GtkRBTree *tree,
 static void
 _gtk_rbnode_free (GtkRBNode *node)
 {
+#ifdef G_ENABLE_DEBUG
   if (gtk_get_debug_flags () & GTK_DEBUG_TREE)
     {
       node->left = (gpointer) 0xdeadbeef;
@@ -74,6 +75,7 @@ _gtk_rbnode_free (GtkRBNode *node)
       node->count = 56789;
       node->flags = 0;
     }
+#endif
   g_slice_free (GtkRBNode, node);
 }
 



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