Kaydet (Commit) b7efab3a authored tarafından Caolán McNamara's avatar Caolán McNamara

valgrind: on success aHDFData is out of scope

and pData points to data belonging to it

Change-Id: I2a3c1f73e4cdcb07d21ef14cb410d351f39cdba8
üst d94f3a68
...@@ -751,12 +751,12 @@ void KeywordInfo::KeywordElement::init( Databases *pDatabases,helpdatafileproxy: ...@@ -751,12 +751,12 @@ void KeywordInfo::KeywordElement::init( Databases *pDatabases,helpdatafileproxy:
listId[i] = id[i]; listId[i] = id[i];
listAnchor[i] = anchor[i]; listAnchor[i] = anchor[i];
helpdatafileproxy::HDFData aHDFData;
const sal_Char* pData = NULL; const sal_Char* pData = NULL;
if( pHdf ) if( pHdf )
{ {
OString idi( id[i].getStr(),id[i].getLength(),RTL_TEXTENCODING_UTF8 ); OString idi( id[i].getStr(),id[i].getLength(),RTL_TEXTENCODING_UTF8 );
helpdatafileproxy::HDFData aHDFData;
bool bSuccess = pHdf->getValueForKey( idi, aHDFData ); bool bSuccess = pHdf->getValueForKey( idi, aHDFData );
if( bSuccess ) if( bSuccess )
pData = aHDFData.getData(); pData = aHDFData.getData();
......
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