- Fixed AInventory::PickupFlash setting with GCC.

- Fixed: The MusicVolumes list was allocated with M_Malloc but freed with
  delete.
- Fixed: demobuffer was inconsistantly handled with new[]/delete[] and
  malloc/free.
- Added used memory tracking to M_Malloc() and M_Realloc(). This
  necessitated the addition of an M_Free() call to track frees.
- Removed M_Calloc since it was only used in one place, and can just as well
  be done with an M_Malloc/memset pair.
- Bumped DEMOGAMEVERSION for the new net controller codes.


SVN r751 (trunk)
This commit is contained in:
Randy Heit 2008-02-17 02:40:03 +00:00
commit 133350fb9c
29 changed files with 182 additions and 98 deletions

View file

@ -89,7 +89,7 @@ public:
{
DoDelete (0, Count-1);
}
free (Array);
M_Free (Array);
}
DoCopy (other);
}
@ -103,7 +103,7 @@ public:
{
DoDelete (0, Count-1);
}
free (Array);
M_Free (Array);
Array = NULL;
Count = 0;
Most = 0;
@ -178,7 +178,7 @@ public:
{
if (Array != NULL)
{
free (Array);
M_Free (Array);
Array = NULL;
}
}
@ -604,7 +604,7 @@ protected:
Nodes[i].~Node();
}
}
free(Nodes);
M_Free(Nodes);
Nodes = NULL;
Size = 0;
LastFree = NULL;
@ -628,7 +628,7 @@ protected:
nold[i].~Node();
}
}
free(nold);
M_Free(nold);
}
void Rehash()