mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
SVN r86 (trunk)
This commit is contained in:
parent
748d7bf4b1
commit
fa2ef4611b
1 changed files with 5 additions and 5 deletions
|
@ -118,11 +118,6 @@ static struct TypeInfoDataFreeer
|
|||
|
||||
void TypeInfo::StaticFreeData (TypeInfo *type)
|
||||
{
|
||||
if (type->ActorInfo != NULL)
|
||||
{
|
||||
delete type->ActorInfo;
|
||||
type->ActorInfo = NULL;
|
||||
}
|
||||
if (type->bRuntimeClass)
|
||||
{
|
||||
if (type->Name != NULL)
|
||||
|
@ -130,6 +125,11 @@ void TypeInfo::StaticFreeData (TypeInfo *type)
|
|||
delete[] type->Name;
|
||||
}
|
||||
type->Name = NULL;
|
||||
if (type->ActorInfo != NULL)
|
||||
{
|
||||
delete type->ActorInfo;
|
||||
type->ActorInfo = NULL;
|
||||
}
|
||||
delete type;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue