Added a new branch that implements support for outputting all memory leaks to
the debug output for the Debug and FastDebug project configurations. This requires replacing all instances of new with a macro, smnew, that defines a special form of new which outputs file and line number information along with the memory leak details. This makes finding memory leaks much easier since you can just double-click the leak in the output window and it will take you to the line that caused it.
This commit is contained in:
@@ -71,7 +71,7 @@ void LifeMeterTime::Load( const PlayerState *pPlayerState, PlayerStageStats *pPl
|
||||
m_quadDangerGlow.SetEffectClock( Actor::CLOCK_BGM_BEAT );
|
||||
this->AddChild( &m_quadDangerGlow );
|
||||
|
||||
m_pStream = new StreamDisplay;
|
||||
m_pStream = smnew StreamDisplay;
|
||||
bool bExtra = GAMESTATE->IsAnExtraStage();
|
||||
m_pStream->Load( bExtra ? "StreamDisplayExtra" : "StreamDisplay" );
|
||||
this->AddChild( m_pStream );
|
||||
|
||||
Reference in New Issue
Block a user