[saco] Implement/match CUnkClass14 destructor

This commit is contained in:
RD42 2024-08-26 22:45:46 +08:00
parent 258392acf5
commit 94e10d91ee
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,11 @@ CUnkClass14::CUnkClass14(IDirect3DDevice9 *pD3DDevice)
RestoreDeviceObjects(); RestoreDeviceObjects();
} }
CUnkClass14::~CUnkClass14()
{
DeleteDeviceObjects();
}
void CUnkClass14::DeleteDeviceObjects() void CUnkClass14::DeleteDeviceObjects()
{ {
SAFE_RELEASE(m_pD3DSprite2); SAFE_RELEASE(m_pD3DSprite2);

View File

@ -10,6 +10,7 @@ private:
public: public:
CUnkClass14(IDirect3DDevice9 *pD3DDevice); CUnkClass14(IDirect3DDevice9 *pD3DDevice);
~CUnkClass14();
void DeleteDeviceObjects(); void DeleteDeviceObjects();
void RestoreDeviceObjects(); void RestoreDeviceObjects();