summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-24 16:20:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-24 16:33:14 +0100
commitb7efab3a9841a9f01c5da07db870a22866b65b04 (patch)
tree5c0022a2d64ba42c678c95b409377f58a21d0b61 /xmlhelp
parentd94f3a68f77de906abd576c7e2f31e0a8586d154 (diff)
valgrind: on success aHDFData is out of scope
and pData points to data belonging to it Change-Id: I2a3c1f73e4cdcb07d21ef14cb410d351f39cdba8
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx
index d9cd7aef7f92..1b252f54c1ca 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.cxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.cxx
@@ -751,12 +751,12 @@ void KeywordInfo::KeywordElement::init( Databases *pDatabases,helpdatafileproxy:
listId[i] = id[i];
listAnchor[i] = anchor[i];
+ helpdatafileproxy::HDFData aHDFData;
const sal_Char* pData = NULL;
if( pHdf )
{
OString idi( id[i].getStr(),id[i].getLength(),RTL_TEXTENCODING_UTF8 );
- helpdatafileproxy::HDFData aHDFData;
bool bSuccess = pHdf->getValueForKey( idi, aHDFData );
if( bSuccess )
pData = aHDFData.getData();