summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/odma
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
commitcb9d5351f02d8a6c6e75bb5676ef78a306a8466b (patch)
tree6c5cef7e3a4b268c3d90f4ff6dbe8af8496a639a /ucb/source/ucp/odma
parentc3d1460a61a02cf83a683d456e9eec1302475e2f (diff)
fix leak
Diffstat (limited to 'ucb/source/ucp/odma')
-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 86d1326be2..8225175f61 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;