- 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:
parent
39bff11693
commit
133350fb9c
29 changed files with 182 additions and 98 deletions
|
|
@ -80,7 +80,7 @@ void FStringTable::FreeData ()
|
|||
while (entry != NULL)
|
||||
{
|
||||
next = entry->Next;
|
||||
free (entry);
|
||||
M_Free (entry);
|
||||
entry = next;
|
||||
}
|
||||
}
|
||||
|
|
@ -98,7 +98,7 @@ void FStringTable::FreeNonDehackedStrings ()
|
|||
if (entry->PassNum != 0)
|
||||
{
|
||||
*pentry = next;
|
||||
free (entry);
|
||||
M_Free (entry);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -254,7 +254,7 @@ void FStringTable::LoadLanguage (int lumpnum, DWORD code, bool exactMatch, int p
|
|||
if (cmpval == 0 && entry->PassNum >= passnum)
|
||||
{
|
||||
*pentry = entry->Next;
|
||||
free (entry);
|
||||
M_Free (entry);
|
||||
entry = NULL;
|
||||
}
|
||||
if (entry == NULL || cmpval > 0)
|
||||
|
|
@ -396,6 +396,6 @@ void FStringTable::SetString (const char *name, const char *newString)
|
|||
{
|
||||
*pentry = entry;
|
||||
entry->Next = oentry->Next;
|
||||
free (oentry);
|
||||
M_Free (oentry);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue