- Repositioned the declaration of the file string in D_DoomMain() so that it
won't be left on the stack at exit. - Fixed: PSymbol needs a virtual destructor so that PSymbolActionFunction can free its Arguments. - Symbols for native classes are now freed on exit. SVN r1022 (trunk)
This commit is contained in:
parent
a4dc93fb91
commit
2e28b0c9ce
5 changed files with 34 additions and 3 deletions
|
|
@ -1204,7 +1204,12 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE nothing, LPSTR cmdline, int n
|
|||
// every allocation and deallocation. This will be slow, but it can be a
|
||||
// great help in finding problem areas.
|
||||
//_CrtSetDbgFlag (_CRTDBG_ALLOC_MEM_DF | _CRTDBG_CHECK_ALWAYS_DF);
|
||||
|
||||
// Enable leak checking at exit.
|
||||
_CrtSetDbgFlag (_CrtSetDbgFlag(0) | _CRTDBG_LEAK_CHECK_DF);
|
||||
|
||||
// Use this to break at a specific allocation number.
|
||||
//_crtBreakAlloc = 5501;
|
||||
#endif
|
||||
|
||||
DoMain (hInstance);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue