Commit 48fe18cf authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix memory leak

parent b87aafc0
......@@ -4356,6 +4356,7 @@ void Gfx::doImage(Object *ref, Stream *str, GBool inlineImg) {
dict->lookup("D", &obj1);
}
if (bits == 0) {
delete colorSpace;
goto err2;
}
colorMap = new GfxImageColorMap(bits, &obj1, colorSpace);
......
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