From 8a2b4ab62d4007731b0c931d6f6badda2742354f Mon Sep 17 00:00:00 2001 From: Olivier Couet <Olivier.Couet@cern.ch> Date: Tue, 20 Nov 2007 09:41:09 +0000 Subject: [PATCH] - Fix a memory leak in PaintContour (found by Bertrand using "purify"). git-svn-id: http://root.cern.ch/svn/root/trunk@20914 27541ba8-7e3a-0410-8455-c3a389f83636 --- histpainter/src/THistPainter.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/histpainter/src/THistPainter.cxx b/histpainter/src/THistPainter.cxx index 6266cf52720..683e82016f2 100644 --- a/histpainter/src/THistPainter.cxx +++ b/histpainter/src/THistPainter.cxx @@ -3016,6 +3016,7 @@ theEND: fH->SetLineStyle(linesav); fH->SetLineColor(colorsav); fH->SetFillColor(fillsav); + if (np) delete [] np; delete [] xarr; delete [] yarr; delete [] itarr; -- GitLab