callcatcher: bring HttpRequest dtor back
This partially reverts 7cb18732923040b27ebd0d1f9c9bc01766d04d59 and fixes a potential leak.
This commit is contained in:
parent
48b31fa847
commit
17c68d1710
@ -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;
|
||||
|
@ -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 );
|
||||
|
@ -740,6 +740,7 @@ TestToolObj::~TestToolObj()
|
||||
if ( pImpl->pTTSfxBroadcaster )
|
||||
delete pImpl->pTTSfxBroadcaster;
|
||||
delete pImpl->pChildEnv;
|
||||
delete pImpl->pHttpRequest;
|
||||
|
||||
pImpl->xErrorList.Clear();
|
||||
pImpl->xWarningList.Clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user