X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfbbox.c;h=de0d96c554bbb49a19c3c5782fd2b110ac7473b6;hb=2689b541f1a0f9a767ac8fe55909183d2c9a7347;hp=fc6de0690cb43dcd5f698e72a1c2f275ee0ca8e9;hpb=4af601968e449891c5d89c180a95891b000f831d;p=swftools.git diff --git a/src/swfbbox.c b/src/swfbbox.c index fc6de06..de0d96c 100644 --- a/src/swfbbox.c +++ b/src/swfbbox.c @@ -141,8 +141,7 @@ void parseFillStyleArray(TAG*tag, SHAPE2*shape) swf_ResetReadBits(tag); swf_GetMatrix(tag, &dest->m); swf_ResetReadBits(tag); - dest->gradient = malloc(sizeof(GRADIENT)); // TODO: free this again - swf_GetGradient(tag, dest->gradient, num>=3?1:0); + swf_GetGradient(tag, &dest->gradient, num>=3?1:0); } else if(type == 0x40 || type == 0x41) {