diff options
author | Albert Astals Cid <aacid@kde.org> | 2012-09-09 22:09:44 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2012-09-09 22:09:44 +0200 |
commit | 48fe18cf277cd2a4e665c74b3a594482f762f4b6 (patch) | |
tree | 8bce179c2a9e5c2abd1ef3950dd1d91785fb37e7 | |
parent | b87aafc0cdb36c3555053f2684c45f1a9d7b2f94 (diff) |
Fix memory leak
-rw-r--r-- | poppler/Gfx.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc index d7684d63..ffe74864 100644 --- a/poppler/Gfx.cc +++ b/poppler/Gfx.cc @@ -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); |