Commit 1a5fa1d2 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

poppler/Page.cc: Fix memory leak when reading a wrong color map in a...

poppler/Page.cc: Fix memory leak when reading a wrong color map in a thumbnail. Patch by Scott Turner <scotty1024@mac.com>
parent dd1c134d
......@@ -3,6 +3,9 @@
* qt/poppler-page.cc: Fix memory leak in Page::textList. Patch by
Jerry Epplin <jepplin@globalvelocity.com>
* poppler/Page.cc: Fix memory leak when reading a wrong color map in a
thumbnail. Patch by Scott Turner <scotty1024@mac.com>
2006-12-20 Jeff Muizelaar <jeff@infidigm.net>
* poppler/CairoOutputDev.cc: Fix scaling of maskedImage masks. They
......
......@@ -492,6 +492,7 @@ GBool Page::loadThumb(unsigned char **data_out,
obj1.free();
if (!colorMap->isOk()) {
fprintf (stderr, "Error: invalid colormap\n");
delete colorMap;
goto fail1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment