fix address sanitizer issues

This commit is contained in:
nillerusr
2022-04-25 17:21:00 +03:00
parent a5e9cdcbe2
commit 2ec2a47a53
17 changed files with 43 additions and 37 deletions

View File

@@ -42,7 +42,7 @@ public:
Polyhedron_IndexedLine_t *pLines;
Polyhedron_IndexedLineReference_t *pIndices;
Polyhedron_IndexedPolygon_t *pPolygons;
unsigned short iVertexCount;
unsigned short iLineCount;
unsigned short iIndexCount;
@@ -53,10 +53,10 @@ public:
Vector Center( void );
};
class CPolyhedron_AllocByNew : public CPolyhedron
class CPolyhedron_AllocByNew final : public CPolyhedron
{
public:
virtual void Release( void );
void Release( void ) override;
static CPolyhedron_AllocByNew *Allocate( unsigned short iVertices, unsigned short iLines, unsigned short iIndices, unsigned short iPolygons ); //creates the polyhedron along with enough memory to hold all it's data in a single allocation
private: