diff options
-rw-r--r-- | source/Protocol/ProtocolRecognizer.cpp | 1 | ||||
-rw-r--r-- | source/UI/Window.cpp | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source/Protocol/ProtocolRecognizer.cpp b/source/Protocol/ProtocolRecognizer.cpp index aadd20de0..ac231bc51 100644 --- a/source/Protocol/ProtocolRecognizer.cpp +++ b/source/Protocol/ProtocolRecognizer.cpp @@ -31,6 +31,7 @@ cProtocolRecognizer::cProtocolRecognizer(cClientHandle * a_Client) : cProtocolRecognizer::~cProtocolRecognizer()
{
+ delete m_Protocol;
}
diff --git a/source/UI/Window.cpp b/source/UI/Window.cpp index 2f9dcb7a9..0c955ba57 100644 --- a/source/UI/Window.cpp +++ b/source/UI/Window.cpp @@ -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(); } |