1
0

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:
madmaxoft@gmail.com 2012-09-29 19:55:18 +00:00
parent 70546f25a0
commit c8fb57af72
2 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,7 @@ cProtocolRecognizer::cProtocolRecognizer(cClientHandle * a_Client) :
cProtocolRecognizer::~cProtocolRecognizer()
{
delete m_Protocol;
}

View File

@ -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();
}