git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added test for "--flatten l/i chars disappearing" problem
[swftools.git]
/
lib
/
jpeg.c
diff --git
a/lib/jpeg.c
b/lib/jpeg.c
index
b0059b8
..
24bf2ed
100644
(file)
--- a/
lib/jpeg.c
+++ b/
lib/jpeg.c
@@
-313,7
+313,7
@@
int jpeg_load(const char*filename, unsigned char**dest, int*_width, int*_height)
int width = *_width = cinfo.output_width;
int height = *_height = cinfo.output_height;
int width = *_width = cinfo.output_width;
int height = *_height = cinfo.output_height;
- *dest = malloc(width*height*4);
+ *dest = (unsigned char*)malloc(width*height*4);
int y;
for (y=0;y<height;y++) {
int y;
for (y=0;y<height;y++) {
@@
-362,6
+362,7
@@
int jpeg_load(const char*filename, unsigned char**dest, int*_width, int*_height)
jpeg_finish_decompress(&cinfo);
jpeg_destroy_decompress(&cinfo);
jpeg_finish_decompress(&cinfo);
jpeg_destroy_decompress(&cinfo);
+ fclose(fi);
return 1;
}
return 1;
}