From e2fcc32d7cf4af799e061c4973e0fa691e33afbf Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 10 Jun 2016 17:19:41 +0100 Subject: [PATCH] Fixed memory leak --- src/osgPlugins/tga/ReaderWriterTGA.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osgPlugins/tga/ReaderWriterTGA.cpp b/src/osgPlugins/tga/ReaderWriterTGA.cpp index fcd5df630..2b0b2b9cf 100644 --- a/src/osgPlugins/tga/ReaderWriterTGA.cpp +++ b/src/osgPlugins/tga/ReaderWriterTGA.cpp @@ -411,6 +411,7 @@ int *numComponents_ret) } if (linebuf) delete [] linebuf; + if (colormap) delete [] colormap; if (tgaerror) {