X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fabc.c;h=d03977d9798592ad7e48413d6e4010398a900f17;hb=cecf84b4cc9ba4d47beaac8adac6ba727c4a04dd;hp=d545a98122f0f7db2bb07857cf23dde599d6bc37;hpb=95706ae1c7ff59b6396c54da046b61eca7f3982f;p=swftools.git diff --git a/lib/as3/abc.c b/lib/as3/abc.c index d545a98..d03977d 100644 --- a/lib/as3/abc.c +++ b/lib/as3/abc.c @@ -857,6 +857,16 @@ void swf_WriteABC(TAG*abctag, void*code) for(t=0;tmethod_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;tmethods->num;t++) {