callcatcher: bring HttpRequest dtor back

This partially reverts 7cb18732923040b27ebd0d1f9c9bc01766d04d59
and fixes a potential leak.
This commit is contained in:
Thomas Arnhold 2011-07-30 13:33:38 +02:00
parent 48b31fa847
commit 17c68d1710
3 changed files with 11 additions and 0 deletions

View File

@ -50,6 +50,15 @@ HttpRequest::HttpRequest()
{
}
HttpRequest::~HttpRequest()
{
delete pStream;
pStream = NULL;
delete pOutSocket;
pOutSocket = NULL;
}
void HttpRequest::SetRequest( rtl::OString aHost, rtl::OString aPath, sal_uInt16 nPort )
{
nStatus = HTTP_REQUEST_SET;

View File

@ -65,6 +65,7 @@ class HttpRequest
void Init();
public:
HttpRequest();
~HttpRequest();
void SetRequest( rtl::OString aHost, rtl::OString aPath, sal_uInt16 nPort );
void SetProxy( rtl::OString aHost, sal_uInt16 nPort );

View File

@ -740,6 +740,7 @@ TestToolObj::~TestToolObj()
if ( pImpl->pTTSfxBroadcaster )
delete pImpl->pTTSfxBroadcaster;
delete pImpl->pChildEnv;
delete pImpl->pHttpRequest;
pImpl->xErrorList.Clear();
pImpl->xWarningList.Clear();