Fixed memory leak

This commit is contained in:
Robert Osfield
2016-06-10 17:06:04 +01:00
parent d833a5be92
commit d221066d9a

View File

@@ -946,6 +946,8 @@ class ReaderWriterDW : public osgDB::ReaderWriter
fclose( fp );
obj.buildDrawable(grp, options); // tidy up any remaining objects
if (matpalet) delete [] matpalet;
return grp;
}