git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed a mem leak
[swftools.git]
/
src
/
swfdump.c
diff --git
a/src/swfdump.c
b/src/swfdump.c
index
5195ef4
..
c6e438e
100644
(file)
--- a/
src/swfdump.c
+++ b/
src/swfdump.c
@@
-265,6
+265,7
@@
void dumpButtonActions(TAG*tag, char*prefix)
}
actions = swf_ActionGet(tag);
swf_DumpActions(actions, prefix);
}
actions = swf_ActionGet(tag);
swf_DumpActions(actions, prefix);
+ swf_ActionFree(actions);
}
void dumpButton(TAG*tag, char*prefix)
}
void dumpButton(TAG*tag, char*prefix)
@@
-1367,7
+1368,9
@@
int main (int argc,char ** argv)
swf_DumpActions(actions, myprefix);
}
else if((tag->id == ST_DOABC || tag->id == ST_RAWABC) && action) {
swf_DumpActions(actions, myprefix);
}
else if((tag->id == ST_DOABC || tag->id == ST_RAWABC) && action) {
- swf_ReadABC(tag);
+ void*abccode = swf_ReadABC(tag);
+ swf_DumpABC(stdout, abccode, "");
+ swf_FreeABC(abccode);
}
else if(tag->id == ST_DOINITACTION && action) {
ActionTAG*actions;
}
else if(tag->id == ST_DOINITACTION && action) {
ActionTAG*actions;