X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswftools.c;h=0a5564530dd1fec9e9418165a804098fedeac690;hb=56d7005a7ccc3d41c333a0c508a9aef43bc02522;hp=cd57d6f06f0608b1f913e74155b3c1fe5f8fe119;hpb=ba795e71ec2ec6c4285f69e632b229c794aaf19e;p=swftools.git diff --git a/lib/modules/swftools.c b/lib/modules/swftools.c index cd57d6f..0a55645 100644 --- a/lib/modules/swftools.c +++ b/lib/modules/swftools.c @@ -30,7 +30,7 @@ SFIXED RFXSWF_SP(SFIXED a1,SFIXED a2,SFIXED b1,SFIXED b2) { S64 a = ((S64)a1*(S64)b1+(S64)a2*(S64)b2)>>16; SFIXED result = (SFIXED)(a); if(a!=result) - fprintf(stderr, "Warning: overflow in matrix multiplication"); + fprintf(stderr, "Warning: overflow in matrix multiplication\n"); return result; } SFIXED RFXSWF_QFIX(int zaehler,int nenner) // bildet Quotient von zwei INTs in SFIXED @@ -999,7 +999,7 @@ char swf_Relocate (SWF*swf, char*bitmap) } } if(t==65536) { - fprintf(stderr, "swf_Relocate: Couldn't relocate: Out of IDs"); + fprintf(stderr, "swf_Relocate: Couldn't relocate: Out of IDs\n"); return 0; } } @@ -1025,6 +1025,7 @@ char swf_Relocate (SWF*swf, char*bitmap) PUT16(&tag->data[ptr[t]], id); } } + free(ptr); } tag=tag->next; } @@ -1057,6 +1058,7 @@ void swf_Relocate2(SWF*swf, int*id2id) PUT16(&tag->data[ptr[t]], id); } } + free(ptr); } } }