summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-25 23:29:55 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-27 09:45:57 +0000
commit1ca675157d753371acd35aad4d824fb4f20f3330 (patch)
treef9c48e3a74cf8b85ae67bb8e6ee00b0079e72f72 /uui
parente87810b69331f5d62cbeac0182c5bc2143f8856f (diff)
fix CntHTTPCookieList_impl leak
Diffstat (limited to 'uui')
-rw-r--r--uui/source/iahndl-cookies.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/uui/source/iahndl-cookies.cxx b/uui/source/iahndl-cookies.cxx
index 4ef37b32f495..6bfeb8be2258 100644
--- a/uui/source/iahndl-cookies.cxx
+++ b/uui/source/iahndl-cookies.cxx
@@ -71,7 +71,7 @@ handleCookiesRequest_(
rContinuations)
SAL_THROW((uno::RuntimeException))
{
- CntHTTPCookieList_impl* pCookies = new CntHTTPCookieList_impl();
+ CntHTTPCookieList_impl aCookies;
for (sal_Int32 i = 0; i < rRequest.Cookies.getLength(); ++i)
{
try
@@ -109,7 +109,7 @@ handleCookiesRequest_(
OSL_ASSERT(false);
break;
}
- pCookies->push_back( xCookie.get() );
+ aCookies.push_back( xCookie.get() );
xCookie.release();
}
catch (std::bad_alloc const &)
@@ -123,7 +123,7 @@ handleCookiesRequest_(
CntHTTPCookieRequest
aRequest(rRequest.URL,
- *pCookies,
+ aCookies,
rRequest.Request == ucb::CookieRequest_RECEIVE
? CNTHTTP_COOKIE_REQUEST_RECV
: CNTHTTP_COOKIE_REQUEST_SEND);
@@ -154,7 +154,7 @@ handleCookiesRequest_(
for (sal_Int32 j = 0; j < rRequest.Cookies.getLength(); ++j)
if (rRequest.Cookies[j].Policy
== ucb::CookiePolicy_CONFIRM)
- switch ( (*pCookies)[ j ]->m_nPolicy )
+ switch ( (aCookies)[ j ]->m_nPolicy )
{
case CNTHTTP_COOKIE_POLICY_ACCEPTED:
xCookieHandling->