callcatcher: bring HttpRequest dtor back
This partially reverts 7cb18732923040b27ebd0d1f9c9bc01766d04d59 and fixes a potential leak.
This commit is contained in:
@@ -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 )
|
void HttpRequest::SetRequest( rtl::OString aHost, rtl::OString aPath, sal_uInt16 nPort )
|
||||||
{
|
{
|
||||||
nStatus = HTTP_REQUEST_SET;
|
nStatus = HTTP_REQUEST_SET;
|
||||||
|
@@ -65,6 +65,7 @@ class HttpRequest
|
|||||||
void Init();
|
void Init();
|
||||||
public:
|
public:
|
||||||
HttpRequest();
|
HttpRequest();
|
||||||
|
~HttpRequest();
|
||||||
|
|
||||||
void SetRequest( rtl::OString aHost, rtl::OString aPath, sal_uInt16 nPort );
|
void SetRequest( rtl::OString aHost, rtl::OString aPath, sal_uInt16 nPort );
|
||||||
void SetProxy( rtl::OString aHost, sal_uInt16 nPort );
|
void SetProxy( rtl::OString aHost, sal_uInt16 nPort );
|
||||||
|
@@ -740,6 +740,7 @@ TestToolObj::~TestToolObj()
|
|||||||
if ( pImpl->pTTSfxBroadcaster )
|
if ( pImpl->pTTSfxBroadcaster )
|
||||||
delete pImpl->pTTSfxBroadcaster;
|
delete pImpl->pTTSfxBroadcaster;
|
||||||
delete pImpl->pChildEnv;
|
delete pImpl->pChildEnv;
|
||||||
|
delete pImpl->pHttpRequest;
|
||||||
|
|
||||||
pImpl->xErrorList.Clear();
|
pImpl->xErrorList.Clear();
|
||||||
pImpl->xWarningList.Clear();
|
pImpl->xWarningList.Clear();
|
||||||
|
Reference in New Issue
Block a user