Kaydet (Commit) 8a7dfe0f authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1325065 Resource leak

Change-Id: I87550b4972f65a34632f0cfe02eba1dc9fe22640
üst d6377753
...@@ -556,8 +556,8 @@ IMPL_LINK_NOARG_TYPED(SdrObjEditView,ImpAfterCutOrPasteChainingEventHdl, LinkPar ...@@ -556,8 +556,8 @@ IMPL_LINK_NOARG_TYPED(SdrObjEditView,ImpAfterCutOrPasteChainingEventHdl, LinkPar
if (!pTextObj) if (!pTextObj)
return; return;
ImpChainingEventHdl(); ImpChainingEventHdl();
TextChainCursorManager *pCursorManager = new TextChainCursorManager(this, pTextObj); TextChainCursorManager aCursorManager(this, pTextObj);
ImpMoveCursorAfterChainingEvent(pCursorManager); ImpMoveCursorAfterChainingEvent(&aCursorManager);
} }
void SdrObjEditView::ImpMoveCursorAfterChainingEvent(TextChainCursorManager *pCursorManager) void SdrObjEditView::ImpMoveCursorAfterChainingEvent(TextChainCursorManager *pCursorManager)
......
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