[saco] Implement/match CNewPlayerTags destructor

This commit is contained in:
RD42 2024-07-27 22:35:39 +08:00
parent efbb695cae
commit e7af6d933f
2 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,12 @@ CNewPlayerTags::CNewPlayerTags(IDirect3DDevice9* pDevice)
D3DXCreateSprite(pDevice, &m_pSprite);
}
CNewPlayerTags::~CNewPlayerTags()
{
if(m_pStates) m_pStates->Release();
SAFE_DELETE(m_pSprite);
}
void CNewPlayerTags::RestoreDeviceObjects()
{
if(m_pSprite)

View File

@ -10,6 +10,7 @@ private:
public:
CNewPlayerTags(IDirect3DDevice9* pDevice);
~CNewPlayerTags();
void RestoreDeviceObjects();
};