OSDN Git Service

malloc_debug_start malloc_debug_end never start without MALLOC_DEBUG
authorYoshihiro Yamazaki <yoya@awm.jp>
Wed, 10 Aug 2011 09:30:36 +0000 (18:30 +0900)
committerYoshihiro Yamazaki <yoya@awm.jp>
Wed, 10 Aug 2011 09:30:36 +0000 (18:30 +0900)
src/swf_object.c

index f779e9d..1b926df 100755 (executable)
@@ -31,7 +31,9 @@ static void _swf_object_tag_close(swf_tag_t *tag_head);
 swf_object_t *
 swf_object_open(void) {
     swf_object_t *swf;
+#ifdef MALLOC_DEBUG
     malloc_debug_start(); /* DEBUG XXX */
+#endif // MALLOC_DEBUG
     swf = (swf_object_t *) calloc(sizeof(*swf), 1);
     swf->tag_head = NULL;
     swf->tag_tail = NULL;
@@ -59,7 +61,9 @@ swf_object_close(swf_object_t *swf) {
         swf->tag_tail= NULL;
         free(swf);
     }
+#ifdef MALLOC_DEBUG
     malloc_debug_end(); /* DEBUG XXX */
+#endif // MALLOC_DEBUG
     return ;
 }