More linux and memory leak fixes

This commit is contained in:
Jack Andersen
2019-05-26 18:59:19 -10:00
parent fc7cffbf37
commit 28f96e91c2
13 changed files with 38 additions and 34 deletions

View File

@@ -50,6 +50,8 @@ protected:
{}
public:
virtual ~CArrayProperty() { delete mpItemArchetype; }
virtual uint32 DataSize() const
{
return sizeof(SScriptArray);

View File

@@ -352,13 +352,9 @@ public:
typedef PropType ValueType;
protected:
PropType mDefaultValue;
PropType mDefaultValue = {};
TTypedProperty(EGame Game)
: IProperty(Game)
{
memset(&mDefaultValue, 0, sizeof(PropType));
}
TTypedProperty(EGame Game) : IProperty(Game) {}
public:
virtual EPropertyType Type() const { return PropEnum; }