diff options
author | Albert Astals Cid <aacid@kde.org> | 2006-12-22 23:39:41 +0000 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2006-12-22 23:39:41 +0000 |
commit | 1a5fa1d2ced62e7d027e085663e987cff625ce0b (patch) | |
tree | 549b1b546ee46549d5ed46c03f8aed20c71c00f4 /poppler/Page.cc | |
parent | dd1c134dcf085338a85188c7f205fc300396dc86 (diff) |
poppler/Page.cc: Fix memory leak when reading a wrong color map in a thumbnail. Patch by Scott Turner <scotty1024@mac.com>
Diffstat (limited to 'poppler/Page.cc')
-rw-r--r-- | poppler/Page.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/poppler/Page.cc b/poppler/Page.cc index 38cd295a..ec2bd3bd 100644 --- a/poppler/Page.cc +++ b/poppler/Page.cc @@ -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; } |