X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgfximage.c;h=f1eda7d4825c7495475758bc76d5f1e92efa9185;hb=b5a996ee217aea486eb78860fe7bab2b522f9678;hp=54adadc41c00ed9c408754f6ff7c3c7ff18932c9;hpb=006f7afc9efc533175af7eba679998af948adfa3;p=swftools.git diff --git a/lib/gfximage.c b/lib/gfximage.c index 54adadc..f1eda7d 100644 --- a/lib/gfximage.c +++ b/lib/gfximage.c @@ -1,3 +1,4 @@ +#include #include #include #include "jpeg.h" @@ -6,7 +7,7 @@ #include "gfximage.h" #include "types.h" -void gfximage_save_jpeg(gfximage_t*img, int quality, const char*filename) +void gfximage_save_jpeg(gfximage_t*img, const char*filename, int quality) { int x,y; int l = img->width*img->height; @@ -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); +} +