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

coverity1325072 Resource leak

Change-Id: I78db1f189d4773ba2ced52fee82add2344b7435e
üst a0c42a13
...@@ -301,8 +301,8 @@ void EditingTextChainFlow::CheckForFlowEvents(SdrOutliner *pFlowOutl) ...@@ -301,8 +301,8 @@ void EditingTextChainFlow::CheckForFlowEvents(SdrOutliner *pFlowOutl)
void EditingTextChainFlow::impLeaveOnlyNonOverflowingText(SdrOutliner *pNonOverflOutl) void EditingTextChainFlow::impLeaveOnlyNonOverflowingText(SdrOutliner *pNonOverflOutl)
{ {
//OutlinerParaObject *pNewText = OutlinerParaObject *pNewText = mpOverflChText->RemoveOverflowingText(pNonOverflOutl);
mpOverflChText->RemoveOverflowingText(pNonOverflOutl); delete pNewText;
//impSetTextForEditingOutliner(pNewText); //XXX: Don't call it since we do everything with NonOverflowingText::ToParaObject // XXX: You may need this for Underflow //impSetTextForEditingOutliner(pNewText); //XXX: Don't call it since we do everything with NonOverflowingText::ToParaObject // XXX: You may need this for Underflow
// XXX: I'm not sure whether we need this (after all operations such as Paste don't change this - as far as I understand) // XXX: I'm not sure whether we need this (after all operations such as Paste don't change this - as far as I understand)
......
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