diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-29 11:13:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-02 11:06:24 +0100 |
commit | abc5807fe1dfc4df794767df6696936e08272af5 (patch) | |
tree | 1c4f8cf424c92323e40aac2c406674e360092fd5 | |
parent | b64c0d95e71dfc07bfa3835a6e10fd86a4a0b5cf (diff) |
callcatcher: fix leak
-rw-r--r-- | automation/source/testtool/httprequest.cxx | 3 | ||||
-rw-r--r-- | automation/source/testtool/objtest.cxx | 25 |
2 files changed, 11 insertions, 17 deletions
diff --git a/automation/source/testtool/httprequest.cxx b/automation/source/testtool/httprequest.cxx index 6442ad078fd9..4ec2f6471c2a 100644 --- a/automation/source/testtool/httprequest.cxx +++ b/automation/source/testtool/httprequest.cxx @@ -53,10 +53,7 @@ HttpRequest::HttpRequest() HttpRequest::~HttpRequest() { delete pStream; - pStream = NULL; - delete pOutSocket; - pOutSocket = NULL; } void HttpRequest::SetRequest( rtl::OString aHost, rtl::OString aPath, sal_uInt16 nPort ) diff --git a/automation/source/testtool/objtest.cxx b/automation/source/testtool/objtest.cxx index 62de1f1eda49..b4589bf03dc8 100644 --- a/automation/source/testtool/objtest.cxx +++ b/automation/source/testtool/objtest.cxx @@ -714,31 +714,28 @@ TestToolObj::~TestToolObj() pImpl->pMyVars[i].Clear(); } - if (m_pControls) - delete m_pControls; - if (m_pReverseSlots) - delete m_pReverseSlots; - if (m_pReverseControls) - delete m_pReverseControls; - if (m_pReverseControlsSon) - delete m_pReverseControlsSon; - if (m_pReverseUIds) - delete m_pReverseUIds; - if (m_pSIds) - delete m_pSIds; + delete m_pControls; + delete m_pReverseSlots; + delete m_pReverseControls; + delete m_pReverseControlsSon; + delete m_pReverseUIds; + delete m_pSIds; + if (pFehlerListe) { delete pFehlerListe; pFehlerListe = NULL; // da pFehlerListe static ist!! } + if ( pCommunicationManager ) { pCommunicationManager->StopCommunication(); delete pCommunicationManager; } + delete In; - if ( pImpl->pTTSfxBroadcaster ) - delete pImpl->pTTSfxBroadcaster; + delete pImpl->pTTSfxBroadcaster; + delete pImpl->pHttpRequest; delete pImpl->pChildEnv; delete pImpl->pHttpRequest; |