mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-22 03:51:11 +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)
|
void TypeInfo::StaticFreeData (TypeInfo *type)
|
||||||
{
|
{
|
||||||
if (type->ActorInfo != NULL)
|
|
||||||
{
|
|
||||||
delete type->ActorInfo;
|
|
||||||
type->ActorInfo = NULL;
|
|
||||||
}
|
|
||||||
if (type->bRuntimeClass)
|
if (type->bRuntimeClass)
|
||||||
{
|
{
|
||||||
if (type->Name != NULL)
|
if (type->Name != NULL)
|
||||||
|
@ -130,6 +125,11 @@ void TypeInfo::StaticFreeData (TypeInfo *type)
|
||||||
delete[] type->Name;
|
delete[] type->Name;
|
||||||
}
|
}
|
||||||
type->Name = NULL;
|
type->Name = NULL;
|
||||||
|
if (type->ActorInfo != NULL)
|
||||||
|
{
|
||||||
|
delete type->ActorInfo;
|
||||||
|
type->ActorInfo = NULL;
|
||||||
|
}
|
||||||
delete type;
|
delete type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue