OSDN Git Service
(root)
/
swfed
/
swfed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e02d27f
)
malloc_debug_start malloc_debug_end never start without MALLOC_DEBUG
author
Yoshihiro Yamazaki
<yoya@awm.jp>
Wed, 10 Aug 2011 09:30:36 +0000
(18:30 +0900)
committer
Yoshihiro Yamazaki
<yoya@awm.jp>
Wed, 10 Aug 2011 09:30:36 +0000
(18:30 +0900)
src/swf_object.c
patch
|
blob
|
history
diff --git
a/src/swf_object.c
b/src/swf_object.c
index
f779e9d
..
1b926df
100755
(executable)
--- a/
src/swf_object.c
+++ b/
src/swf_object.c
@@
-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 ;
}