mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Release memory
This commit is contained in:
parent
e46e744dc7
commit
11a9edd263
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue