Added an imageList.clear() to osgbillboard so that its memory would be

cleared before entering the viewer main loop, this removes memorymanager
a reported memory leak due to the viewer using exit() which bypasses
the clean up on main itself.

Added an osgNew to the ReaderWriterRGB.cpp to aid detected of tracking of
memory leaks.
This commit is contained in:
Robert Osfield
2002-04-23 10:55:45 +00:00
parent 2f392b635c
commit 2d0df88ee4
2 changed files with 27 additions and 24 deletions

View File

@@ -338,7 +338,7 @@ class ReaderWriterRGB : public osgDB::ReaderWriter
RawImageGetData(raw, &data);
RawImageClose(raw);
Image* image = new Image();
Image* image = osgNew Image();
image->setFileName(fileName.c_str());
image->setImage(s,t,r,
internalFormat,