summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2008-05-26 20:52:53 +0200
committerAlbert Astals Cid <aacid@kde.org>2008-05-26 20:53:51 +0200
commit21b23656891aea94f0dab281e06b7ae6009b7edb (patch)
tree675e3b1ac4d0b90382dd4f933baf48c34b7176fa
parentbe0e8d98a8aae2f826079e86d1a1238bf6c36f51 (diff)
Do not leak tSplash if transpGroupStack->blendingColorSpace is NULL
-rw-r--r--poppler/SplashOutputDev.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 9aa99db2..9fb06535 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -2611,9 +2611,9 @@ void SplashOutputDev::setSoftMask(GfxState * /*state*/, double * /*bbox*/,
if (!alpha && colorMode != splashModeMono1) {
//~ need to correctly handle the case where no blending color
//~ space is given
- tSplash = new Splash(tBitmap, vectorAntialias,
- transpGroupStack->origSplash->getScreen());
if (transpGroupStack->blendingColorSpace) {
+ tSplash = new Splash(tBitmap, vectorAntialias,
+ transpGroupStack->origSplash->getScreen());
switch (colorMode) {
case splashModeMono1:
// transparency is not supported in mono1 mode