Kaydet (Commit) 17c68d17 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

callcatcher: bring HttpRequest dtor back

This partially reverts 7cb18732923040b27ebd0d1f9c9bc01766d04d59
and fixes a potential leak.
üst 48b31fa8
...@@ -50,6 +50,15 @@ HttpRequest::HttpRequest() ...@@ -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 ...@@ -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() ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment