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

Resolves: coverity#705746 resource leak

Change-Id: I379f8bd780f40169ed7c70c7c5a28277091b978e
üst aa479a03
......@@ -740,16 +740,16 @@ void SwRubyPortion::_Adjust( SwTxtFormatInfo &rInf )
{
if( !pCurr->GetPortion() )
pCurr->SetPortion( new SwTxtPortion( *pCurr ) );
SwMarginPortion *pMarg = new SwMarginPortion( 0 );
if( nLeft )
{
SwMarginPortion *pMarg = new SwMarginPortion( 0 );
pMarg->AddPrtWidth( nLeft );
pMarg->SetPortion( pCurr->GetPortion() );
pCurr->SetPortion( pMarg );
}
if( nRight )
{
pMarg = new SwMarginPortion( 0 );
SwMarginPortion *pMarg = new SwMarginPortion( 0 );
pMarg->AddPrtWidth( nRight );
pCurr->FindLastPortion()->Append( pMarg );
}
......
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