- 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

@ -233,8 +233,8 @@ missing:
Printf ("Missing argument to %s\n", token);
done:
if (prod2 != NULL) free (prod2);
if (prod1 != NULL) free (prod1);
if (prod2 != NULL) M_Free (prod2);
if (prod1 != NULL) M_Free (prod1);
return prod3;
}
@ -353,7 +353,7 @@ static FStringProd *DoubleToString (FProduction *prod)
sprintf (buf, "%g", static_cast<FDoubleProd *>(prod)->Value);
newprod = NewStringProd (buf);
free (prod);
M_Free (prod);
return newprod;
}
@ -368,7 +368,7 @@ static FDoubleProd *StringToDouble (FProduction *prod)
FDoubleProd *newprod;
newprod = NewDoubleProd (atof (static_cast<FStringProd *>(prod)->Value));
free (prod);
M_Free (prod);
return newprod;
}
@ -746,7 +746,7 @@ CCMD (test)
}
if (prod != NULL)
{
free (prod);
M_Free (prod);
}
}
@ -802,7 +802,7 @@ CCMD (eval)
Printf ("%s\n", static_cast<FStringProd *>(prod)->Value);
}
}
free (prod);
M_Free (prod);
return;
}
}