- 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:
Randy Heit 2008-06-06 02:17:28 +00:00
commit 2e28b0c9ce
5 changed files with 34 additions and 3 deletions

View file

@ -2059,7 +2059,6 @@ void D_MultiExec (DArgs *list, bool usePullin)
void D_DoomMain (void)
{
int p, flags;
FString file;
char *v;
const char *wad;
DArgs *execFiles;
@ -2096,6 +2095,8 @@ void D_DoomMain (void)
if (!(gameinfo.flags & GI_SHAREWARE))
{
FString file;
// [RH] zvox.wad - A wad I had intended to be automatically generated
// from Q2's pak0.pak so the female and cyborg player could have
// voices. I never got around to writing the utility to do it, though.
@ -2506,7 +2507,7 @@ void D_DoomMain (void)
v = Args->CheckValue ("-loadgame");
if (v)
{
file = v;
FString file(v);
FixPathSeperator (file);
DefaultExtension (file, ".zds");
G_LoadGame (file);