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:
parent
70546f25a0
commit
c8fb57af72
@ -31,6 +31,7 @@ cProtocolRecognizer::cProtocolRecognizer(cClientHandle * a_Client) :
|
||||
|
||||
cProtocolRecognizer::~cProtocolRecognizer()
|
||||
{
|
||||
delete m_Protocol;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user