Kaydet (Commit) 9044c8e0 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud Kaydeden (comit) Caolán McNamara

coverity#983200 Resource leak

Change-Id: I5454b836fe085d73feff0da2ae3875b5d6b641ff
Reviewed-on: https://gerrit.libreoffice.org/2203Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 9cacdd26
......@@ -196,14 +196,14 @@ void SwChangeDBDlg::UpdateFlds()
{
if( m_pUsedDBTLB->GetParent( pEntry ))
{
String* pTmp = new String( m_pUsedDBTLB->GetEntryText(
m_pUsedDBTLB->GetParent( pEntry )));
*pTmp += DB_DELIM;
*pTmp += m_pUsedDBTLB->GetEntryText( pEntry );
*pTmp += DB_DELIM;
int nCommandType = (int)(sal_uLong)pEntry->GetUserData();
*pTmp += String::CreateFromInt32(nCommandType);
aDBNames.push_back(*pTmp);
OUStringBuffer sTmp;
sTmp.append(m_pUsedDBTLB->GetEntryText( m_pUsedDBTLB->GetParent( pEntry )));
sTmp.append(DB_DELIM);
sTmp.append(m_pUsedDBTLB->GetEntryText( pEntry ));
sTmp.append(DB_DELIM);
sTmp.append(OUString::number((int)(sal_uLong)pEntry->GetUserData()));
aDBNames.push_back(sTmp.makeStringAndClear());
}
pEntry = m_pUsedDBTLB->NextSelected(pEntry);
}
......
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