summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2014-04-06 15:57:38 +0200
committerAlbert Astals Cid <aacid@kde.org>2014-04-06 16:08:15 +0200
commit0ef290a7c5a8fa54d3fe0f646abdf098443a7a67 (patch)
tree309e681a51589d343fffe82617d2dcf3bad515a5
parent8810b8917fded340b784873a91ca025b0bb49f3d (diff)
Fix memory leak
CID #16852
-rw-r--r--splash/Splash.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/splash/Splash.cc b/splash/Splash.cc
index b303cf2c..aa46494c 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -2511,6 +2511,8 @@ SplashError Splash::fillWithPattern(SplashPath *path, GBool eo,
delta = (yMinI == yMaxI) ? yMaxFP - yMinFP : xMaxFP - xMinFP;
if (delta < 0.2) {
opClipRes = splashClipAllOutside;
+ delete scanner;
+ delete xPath;
return splashOk;
}
}