summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
authorHarri Pitkänen <hatapitk@iki.fi>2010-10-14 17:32:07 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-14 17:32:42 +0100
commit2d3941f9f870249b002465d8cef8c2943f56227f (patch)
treefc163e0e9af24d7017d10c6852a5cf98dbc00d87 /ucb/source
parent58fdac463609ec4314a91813bb73e4071360c886 (diff)
fix leak
Diffstat (limited to 'ucb/source')
-rw-r--r--ucb/source/ucp/odma/odma_datasupplier.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/ucb/source/ucp/odma/odma_datasupplier.cxx b/ucb/source/ucp/odma/odma_datasupplier.cxx
index db86c9864320..6b680896196d 100644
--- a/ucb/source/ucp/odma/odma_datasupplier.cxx
+++ b/ucb/source/ucp/odma/odma_datasupplier.cxx
@@ -288,8 +288,11 @@ sal_Bool DataSupplier::getResult( sal_uInt32 nIndex )
DWORD dwFlags = ODM_SPECIFIC;
odm = NODMQueryExecute(ContentProvider::getHandle(), sQuery,dwFlags, lpszDMSList, pQueryId );
- if(odm != ODM_SUCCESS)
+ if(odm != ODM_SUCCESS) {
+ delete[] pQueryId;
+ delete[] lpszDMSList;
return sal_False;
+ }
sal_uInt16 nCount = 10;
sal_uInt16 nMaxCount = 10;