X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgfximage.c;h=f1eda7d4825c7495475758bc76d5f1e92efa9185;hb=b5a996ee217aea486eb78860fe7bab2b522f9678;hp=58f18b3295aa83e811034c2c2431760e92e79d2d;hpb=8f67c24d3250b417099a27525c3ef14ab1c7b3db;p=swftools.git diff --git a/lib/gfximage.c b/lib/gfximage.c index 58f18b3..f1eda7d 100644 --- a/lib/gfximage.c +++ b/lib/gfximage.c @@ -1,3 +1,4 @@ +#include #include #include #include "jpeg.h" @@ -340,3 +341,11 @@ gfximage_t* gfximage_rescale(gfximage_t*image, int newwidth, int newheight) image2->height = newheight; return image2; } + +void gfximage_free(gfximage_t*b) +{ + free(b->data); + b->data = 0; + free(b); +} +