diff --git a/LEGO1/tgl/d3drm/impl.h b/LEGO1/tgl/d3drm/impl.h index 940af456..31af6bec 100644 --- a/LEGO1/tgl/d3drm/impl.h +++ b/LEGO1/tgl/d3drm/impl.h @@ -205,7 +205,13 @@ class LightImpl : public Light { class MeshImpl : public Mesh { public: MeshImpl() : m_data(0) {} - ~MeshImpl(); + ~MeshImpl() + { + if (m_data) { + delete m_data; + m_data = NULL; + } + } virtual void* ImplementationDataPtr(); diff --git a/LEGO1/tgl/d3drm/mesh.cpp b/LEGO1/tgl/d3drm/mesh.cpp index 383e421c..3653492e 100644 --- a/LEGO1/tgl/d3drm/mesh.cpp +++ b/LEGO1/tgl/d3drm/mesh.cpp @@ -16,6 +16,9 @@ MeshImpl::~MeshImpl() } } +// OFFSET: LEGO1 0x100a3d80 TEMPLATE +// TglImpl::MeshImpl::`scalar deleting destructor' + // OFFSET: LEGO1 0x100a3ed0 void* MeshImpl::ImplementationDataPtr() {