diff --git a/saco/unkclass14.cpp b/saco/unkclass14.cpp index 86bec7a..3aa39e4 100644 --- a/saco/unkclass14.cpp +++ b/saco/unkclass14.cpp @@ -10,6 +10,11 @@ CUnkClass14::CUnkClass14(IDirect3DDevice9 *pD3DDevice) RestoreDeviceObjects(); } +CUnkClass14::~CUnkClass14() +{ + DeleteDeviceObjects(); +} + void CUnkClass14::DeleteDeviceObjects() { SAFE_RELEASE(m_pD3DSprite2); diff --git a/saco/unkclass14.h b/saco/unkclass14.h index 0b0f23c..34d0bcd 100644 --- a/saco/unkclass14.h +++ b/saco/unkclass14.h @@ -10,6 +10,7 @@ private: public: CUnkClass14(IDirect3DDevice9 *pD3DDevice); + ~CUnkClass14(); void DeleteDeviceObjects(); void RestoreDeviceObjects();