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() ...@@ -196,14 +196,14 @@ void SwChangeDBDlg::UpdateFlds()
{ {
if( m_pUsedDBTLB->GetParent( pEntry )) if( m_pUsedDBTLB->GetParent( pEntry ))
{ {
String* pTmp = new String( m_pUsedDBTLB->GetEntryText( OUStringBuffer sTmp;
m_pUsedDBTLB->GetParent( pEntry )));
*pTmp += DB_DELIM; sTmp.append(m_pUsedDBTLB->GetEntryText( m_pUsedDBTLB->GetParent( pEntry )));
*pTmp += m_pUsedDBTLB->GetEntryText( pEntry ); sTmp.append(DB_DELIM);
*pTmp += DB_DELIM; sTmp.append(m_pUsedDBTLB->GetEntryText( pEntry ));
int nCommandType = (int)(sal_uLong)pEntry->GetUserData(); sTmp.append(DB_DELIM);
*pTmp += String::CreateFromInt32(nCommandType); sTmp.append(OUString::number((int)(sal_uLong)pEntry->GetUserData()));
aDBNames.push_back(*pTmp); aDBNames.push_back(sTmp.makeStringAndClear());
} }
pEntry = m_pUsedDBTLB->NextSelected(pEntry); 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