Kaydet (Commit) 61867bd7 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Fix the memory leak. ScEditCell clones the EditTextObject in its ctor.

Change-Id: I8f0f29a504a363ac4359dd4e6ec962976746fecd
üst 664e65f9
......@@ -1050,7 +1050,8 @@ void ScXMLTableRowCellContext::PutTextCell( const ScAddress& rCurrentPos,
mpEditEngine->QuickInsertField(SvxFieldItem(*it->mpData, EE_FEATURE_FIELD), it->maSelection);
}
pNewCell = new ScEditCell(mpEditEngine->CreateTextObject(), pDoc, pDoc->GetEditPool());
boost::scoped_ptr<EditTextObject> pTextObj(mpEditEngine->CreateTextObject());
pNewCell = new ScEditCell(pTextObj.get(), pDoc, pDoc->GetEditPool());
}
}
else if ( nCurrentCol > 0 && pOUText && !pOUText->isEmpty() )
......
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