Release memory

This commit is contained in:
Johan Mattsson 2023-03-04 22:01:36 +01:00 committed by GitHub
parent e46e744dc7
commit 11a9edd263
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,6 +60,7 @@ DefineEngineStaticMethod( TerrainBlock, createNew, S32, (String terrainName, U32
if( !terrain->setFile( terrFileName ) )
{
Con::errorf( "TerrainBlock::createNew - error creating '%s'", terrFileName.c_str() );
delete terrain;
return 0;
}