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:
+1
-1
@@ -53,7 +53,7 @@ void MenuTimer::Load( RString sMetricsGroup )
|
||||
if(WARNING_COMMAND)
|
||||
WARNING_COMMAND->Clear();
|
||||
|
||||
WARNING_COMMAND = new ThemeMetric1D<apActorCommands>(sMetricsGroup, WARNING_COMMAND_NAME, WARNING_START+1);
|
||||
WARNING_COMMAND = smnew ThemeMetric1D<apActorCommands>(sMetricsGroup, WARNING_COMMAND_NAME, WARNING_START+1);
|
||||
|
||||
m_fStallSecondsLeft = MAX_STALL_SECONDS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user