X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fmodules%2Fswftools.c;h=b192f338b3b29fe5ddef6ff21c558c2cdd70a6ef;hb=6d22f1376c2fcad7c872db608630468d3abcca23;hp=e3d20eeb6ea89a3d949cf9d485d0770fd7ffd6ce;hpb=dfc81d564ff8df06a3fb5635d77a2b9a31afde7b;p=swftools.git diff --git a/lib/modules/swftools.c b/lib/modules/swftools.c index e3d20ee..b192f33 100644 --- a/lib/modules/swftools.c +++ b/lib/modules/swftools.c @@ -560,7 +560,7 @@ void enumerateUsedIDs(TAG * tag, int base, void (*callback)(TAG*, int, void*), v if(id == ST_END) break; tag2->len = tag2->memsize = len; - tag2->data = rfx_alloc(len); + tag2->data = malloc(len); memcpy(tag2->data, &tag->data[tag->pos], len); /* I never saw recursive sprites, but they are (theoretically) possible, so better add base here again */ @@ -844,7 +844,7 @@ void swf_Relocate (SWF*swf, char*bitmap) } num = swf_GetNumUsedIDs(tag); - ptr = rfx_alloc(sizeof(int)*num); + ptr = malloc(sizeof(int)*num); swf_GetUsedIDs(tag, ptr); for(t=0;tdata[positions[t]], id); } - rfx_free(positions); + free(positions); tag = tag->next; } tag = next; } - rfx_free(dontremap); - rfx_free(remap); - rfx_free(id2tag); - rfx_free(hashmap); + free(dontremap); + free(remap); + free(id2tag); + free(hashmap); }