git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
95706ae
)
mem leak fixes
author
kramm
<kramm>
Mon, 24 Nov 2008 16:12:06 +0000
(16:12 +0000)
committer
kramm
<kramm>
Mon, 24 Nov 2008 16:12:06 +0000
(16:12 +0000)
lib/as3/abc.c
patch
|
blob
|
history
diff --git
a/lib/as3/abc.c
b/lib/as3/abc.c
index
d545a98
..
d03977d
100644
(file)
--- a/
lib/as3/abc.c
+++ b/
lib/as3/abc.c
@@
-857,6
+857,16
@@
void swf_WriteABC(TAG*abctag, void*code)
for(t=0;t<file->method_bodies->num;t++) {
abc_method_body_t*m = (abc_method_body_t*)array_getvalue(file->method_bodies, t);
m->index = t;
for(t=0;t<file->method_bodies->num;t++) {
abc_method_body_t*m = (abc_method_body_t*)array_getvalue(file->method_bodies, t);
m->index = t;
+ exception_list_t*ee = m->exceptions;
+ while(ee) {
+ exception_t*e=ee->exception;ee->exception=0;
+ e->from = e->to = e->target = 0;
+ multiname_destroy(e->exc_type);e->exc_type=0;
+ multiname_destroy(e->var_name);e->var_name=0;
+ free(e);
+ ee=ee->next;
+ }
+ list_free(m->exceptions);m->exceptions=0;
}
for(t=0;t<file->methods->num;t++) {
}
for(t=0;t<file->methods->num;t++) {