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) {