Fixed memory leaks in cWindow and cProtocolRecognizer
git-svn-id: http://mc-server.googlecode.com/svn/trunk@910 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -41,6 +41,11 @@ cWindow::cWindow(cWindow::WindowType a_WindowType, const AString & a_WindowTitle
|
||||
|
||||
cWindow::~cWindow()
|
||||
{
|
||||
for (cSlotAreas::iterator itr = m_SlotAreas.begin(), end = m_SlotAreas.end(); itr != end; ++itr)
|
||||
{
|
||||
delete *itr;
|
||||
}
|
||||
m_SlotAreas.clear();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user