summaryrefslogtreecommitdiffstats
path: root/src/pngenc.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2003-01-06 20:54:16 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2003-01-06 20:54:16 (GMT)
commitf781e6dbbaa51edbdbe9b5906be9962968d0ee68 (patch)
treeb008f56412d0734ea397eb4492ddd66c08677dff /src/pngenc.cpp
parentdfa656f3404e589ad59c47dc1728744efb245a82 (diff)
downloadDoxygen-f781e6dbbaa51edbdbe9b5906be9962968d0ee68.zip
Doxygen-f781e6dbbaa51edbdbe9b5906be9962968d0ee68.tar.gz
Doxygen-f781e6dbbaa51edbdbe9b5906be9962968d0ee68.tar.bz2
Release-1.3-rc2-20030106
Diffstat (limited to 'src/pngenc.cpp')
-rw-r--r--src/pngenc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pngenc.cpp b/src/pngenc.cpp
index ce36b95..18d7085 100644
--- a/src/pngenc.cpp
+++ b/src/pngenc.cpp
@@ -106,6 +106,7 @@ void PngEncoder::write(const char *name)
PNG_COLOR_TYPE_PALETTE, PNG_INTERLACE_NONE,
PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE
);
+ free(png_palette);
ti[0] = transIndex;
png_set_tRNS(png_ptr,info_ptr,ti,1,NULL);
rows = (unsigned char **) calloc(sizeof(unsigned char*),height);