diff --git a/src/dobject.cpp b/src/dobject.cpp index 9d20c1a98..08d1d8d7f 100644 --- a/src/dobject.cpp +++ b/src/dobject.cpp @@ -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; } }