[saco] Implement CDXUTDialog destructor

This commit is contained in:
RD42 2024-05-24 22:42:43 +08:00
parent a630a523e1
commit fee3ab194a
2 changed files with 23 additions and 0 deletions

View File

@ -51,6 +51,27 @@ CDXUTDialog::CDXUTDialog()
m_bMouseInput = true;
}
//--------------------------------------------------------------------------------------
CDXUTDialog::~CDXUTDialog()
{
int i=0;
RemoveAllControls();
m_Fonts.RemoveAll();
m_Textures.RemoveAll();
for( i=0; i < m_DefaultElements.GetSize(); i++ )
{
DXUTElementHolder* pElementHolder = m_DefaultElements.GetAt( i );
SAFE_DELETE( pElementHolder );
}
m_DefaultElements.RemoveAll();
}
//--------------------------------------------------------------------------------------
CDXUTDialogResourceManager::CDXUTDialogResourceManager()
{

View File

@ -89,6 +89,8 @@ class CDXUTDialog
{
public:
CDXUTDialog();
~CDXUTDialog();
bool m_bNonUserEvents;
bool m_bKeyboardInput;