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

@@ -17,6 +17,7 @@ protected:
CCollisionRenderData mRenderData;
public:
virtual ~CCollisionMesh() = default;
virtual void BuildRenderData();
/** Accessors */

View File

@@ -14,6 +14,7 @@ enum class EOBBTreeNodeType : uint8
struct SOBBTreeNode
{
virtual ~SOBBTreeNode() = default;
CTransform4f Transform;
CVector3f Radii;
EOBBTreeNodeType NodeType;

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; }