[poppler] poppler/GfxState.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Aug 1 21:31:13 UTC 2019
poppler/GfxState.cc | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit d706a9ae17bbc03cc2f0b19f89f84b39571df0a6
Author: Albert Astals Cid <aacid at kde.org>
Date: Thu Aug 1 23:27:27 2019 +0200
GfxRadialShading::parse: Fix memory leak on broken files
diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index 33d2aaf4..b239e273 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -4277,6 +4277,9 @@ GfxRadialShading *GfxRadialShading::parse(GfxResources *res, Dict *dict, OutputD
for (i = 0; i < nFuncsA; ++i) {
Object obj2 = obj1.arrayGet(i);
if (!(funcsA[i] = Function::parse(&obj2))) {
+ for (int j = 0; j < i; ++j) {
+ delete funcsA[j];
+ }
return nullptr;
}
}
More information about the poppler
mailing list