replaced libart with new polygon code
[swftools.git] / lib / readers / image.c
index 449111a..261b560 100644 (file)
@@ -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;
-    // ...
+
+    free(i->img.data);i->img.data = 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;
 }
+