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:
@@ -161,11 +161,11 @@ void ScreenWithMenuElements::HandleScreenMessage( const ScreenMessage SM )
|
||||
|
||||
ScreenWithMenuElements::~ScreenWithMenuElements()
|
||||
{
|
||||
SAFE_DELETE( m_MenuTimer );
|
||||
RageUtil::SafeDelete( m_MenuTimer );
|
||||
FOREACH_PlayerNumber( p )
|
||||
{
|
||||
if( m_MemoryCardDisplay[p] != nullptr )
|
||||
SAFE_DELETE( m_MemoryCardDisplay[p] );
|
||||
RageUtil::SafeDelete( m_MemoryCardDisplay[p] );
|
||||
}
|
||||
for (Actor *actor : m_vDecorations)
|
||||
delete actor;
|
||||
|
||||
Reference in New Issue
Block a user