git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
polygon intersector: performance improvements and bugfixes
[swftools.git]
/
lib
/
readers
/
image.c
diff --git
a/lib/readers/image.c
b/lib/readers/image.c
index
449111a
..
261b560
100644
(file)
--- a/
lib/readers/image.c
+++ b/
lib/readers/image.c
@@
-80,7
+80,9
@@
void imagepage_rendersection(gfxpage_t*page, gfxdevice_t*output, gfxcoord_t x, g
void image_doc_destroy(gfxdocument_t*gfx)
{
image_doc_internal_t*i= (image_doc_internal_t*)gfx->internal;
void image_doc_destroy(gfxdocument_t*gfx)
{
image_doc_internal_t*i= (image_doc_internal_t*)gfx->internal;
- // ...
+
+ free(i->img.data);i->img.data = 0;
+
free(gfx->internal);gfx->internal=0;
free(gfx);gfx=0;
}
free(gfx->internal);gfx->internal=0;
free(gfx);gfx=0;
}
@@
-155,3
+157,4
@@
gfxsource_t*gfxsource_image_create()
src->open = image_open;
return src;
}
src->open = image_open;
return src;
}
+