diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-09-29 10:17:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-29 11:10:32 +0100 |
commit | 1faa4dd2fb27543395b1241cb4adc18ce58895e2 (patch) | |
tree | 5b4d96fbfd4fb56b598a816fe0ea8302ff1a8ce6 /svx | |
parent | 8a7dfe0fa51730ea7276a28a524395c989fb7e37 (diff) |
coverity#1325066 Resource leak
Change-Id: I8065898bcce11f8b0243aea23854edee6fb05595
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdedxv.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx index 042fa2e919d4..92249181c963 100644 --- a/svx/source/svdraw/svdedxv.cxx +++ b/svx/source/svdraw/svdedxv.cxx @@ -1311,8 +1311,8 @@ bool SdrObjEditView::KeyInput(const KeyEvent& rKEvt, vcl::Window* pWin) /* Start special handling of keys within a chain */ // We possibly move to another box before any handling bool bHandled = false; - TextChainCursorManager *pCursorManager = - ImpHandleMotionThroughBoxesKeyInput(rKEvt, pWin, &bHandled); + std::unique_ptr<TextChainCursorManager> xCursorManager( + ImpHandleMotionThroughBoxesKeyInput(rKEvt, pWin, &bHandled)); if (bHandled) return true; /* End special handling of keys within a chain */ @@ -1327,7 +1327,7 @@ bool SdrObjEditView::KeyInput(const KeyEvent& rKEvt, vcl::Window* pWin) /* Start chaining processing */ ImpChainingEventHdl(); - ImpMoveCursorAfterChainingEvent(pCursorManager); + ImpMoveCursorAfterChainingEvent(xCursorManager.get()); /* End chaining processing */ if (pWin!=NULL && pWin!=pTextEditWin) SetTextEditWin(pWin); |