Replace SAFE_DELETE / SAFE_DELETE_ARRAY macros
SAFE_DELETE -> RageUtil::SafeDelete SAFE_DELETE_ARRAY -> RageUtil::SafeDeleteArray Update JsonUtil.h to include RageUtil.h - MSVC doesn't need it included for some reason, but GCC and XCode does.
This commit is contained in:
@@ -21,7 +21,7 @@ ModelManager::~ModelManager()
|
||||
RageModelGeometry* pGeom = i->second;
|
||||
if( pGeom->m_iRefCount )
|
||||
LOG->Trace( "MODELMAN LEAK: '%s', RefCount = %d.", i->first.c_str(), pGeom->m_iRefCount );
|
||||
SAFE_DELETE( pGeom );
|
||||
RageUtil::SafeDelete( pGeom );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ void ModelManager::UnloadModel( RageModelGeometry *m )
|
||||
else
|
||||
{
|
||||
m_mapFileToGeometry.erase( i ); // remove map entry
|
||||
SAFE_DELETE( m ); // free the texture
|
||||
RageUtil::SafeDelete( m ); // free the texture
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user