From c75aecc2828ebb9045062bd2563cdc3c77742a9c Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 30 Jul 2012 18:05:56 +0000 Subject: [PATCH] make use of "make debug" target --- daemon/obj.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/daemon/obj.h b/daemon/obj.h index d7451e707..f2717e11b 100644 --- a/daemon/obj.h +++ b/daemon/obj.h @@ -14,7 +14,11 @@ +#ifdef __DEBUG +#define OBJ_DEBUG 1 +#else #define OBJ_DEBUG 0 +#endif @@ -151,7 +155,9 @@ static inline void __obj_put(void *p #endif if (o->free_func) o->free_func(o); +#if OBJ_DEBUG o->magic = 0; +#endif g_slice_free1(o->size, o); }