- Fixed: Skin definitions were never freed.
- Fixed: Names in terrain definitions were never freed. Replacing them with FNames would have been a good idea anyway. - Fixed: The lock definitions were never freed. - Fixed: FDoorAnimation was missing a destructor. - Fixed: animation and switch definitions were never freed. - Replaced all other places where FindType was used with FNames with IFindType. SVN r90 (trunk)
This commit is contained in:
parent
ace3ed1188
commit
763efb3682
11 changed files with 108 additions and 32 deletions
|
|
@ -785,6 +785,13 @@ void R_InitSprites ()
|
|||
qsort (&skins[1], numskins-1, sizeof(FPlayerSkin), skinsorter);
|
||||
}
|
||||
|
||||
static struct SkinDeleter
|
||||
{
|
||||
~SkinDeleter()
|
||||
{
|
||||
if (skins!=NULL) delete[] skins;
|
||||
}
|
||||
} DeleteTheSkins;
|
||||
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue