git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
allow a pdf file to have broken pages
[swftools.git]
/
lib
/
gfximage.c
diff --git
a/lib/gfximage.c
b/lib/gfximage.c
index
58f18b3
..
f1eda7d
100644
(file)
--- a/
lib/gfximage.c
+++ b/
lib/gfximage.c
@@
-1,3
+1,4
@@
+#include <stdlib.h>
#include <math.h>
#include <memory.h>
#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);
+}
+