fixed a mem leak
[swftools.git] / src / swfdump.c
index 5195ef4..c6e438e 100644 (file)
@@ -265,6 +265,7 @@ void dumpButtonActions(TAG*tag, char*prefix)
     }
     actions = swf_ActionGet(tag);
     swf_DumpActions(actions, prefix);
+    swf_ActionFree(actions);
 }
 
 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_ReadABC(tag);
+            void*abccode = swf_ReadABC(tag);
+            swf_DumpABC(stdout, abccode, "");
+            swf_FreeABC(abccode);
         }
         else if(tag->id == ST_DOINITACTION && action) {
             ActionTAG*actions;