[poppler] splash/Splash.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sat May 21 18:02:38 UTC 2016


 splash/Splash.cc |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 1d0251c8ab48e2e1a4873d84b4bc573b3ae2a98d
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat May 21 20:02:26 2016 +0200

    Fix memory leak in Splash::gouraudTriangleShadedFill

diff --git a/splash/Splash.cc b/splash/Splash.cc
index 5acbe8e..4d33cf7 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -11,7 +11,7 @@
 // All changes made under the Poppler project to this file are licensed
 // under GPL version 2 or later
 //
-// Copyright (C) 2005-2015 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2005-2016 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2005 Marco Pesenti Gritti <mpg at redhat.com>
 // Copyright (C) 2010-2016 Thomas Freitag <Thomas.Freitag at alfa.de>
 // Copyright (C) 2010 Christian Feuersänger <cfeuersaenger at googlemail.com>
@@ -5768,6 +5768,9 @@ GBool Splash::gouraudTriangleShadedFill(SplashGouraudColor *shading)
       }
     }
   } else {
+    if (!bDirectBlit) {
+      delete blitTarget;
+    }
     return gFalse;
   }
 


More information about the poppler mailing list