summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdedxv.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdedxv.cxx')
-rw-r--r--svx/source/svdraw/svdedxv.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index 7915e4db5cb9..31e7ab5b9bdf 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -1500,12 +1500,11 @@ SdrEndTextEditKind SdrObjEditView::SdrEndTextEdit(bool bDontDeleteReally)
mxWeakTextEditObj.clear();
mpTextEditPV = nullptr;
mpTextEditWin = nullptr;
- SdrOutliner* pTEOutliner = mpTextEditOutliner.release();
mpTextEditOutlinerView = nullptr;
pTextEditCursorBuffer = nullptr;
aTextEditArea = tools::Rectangle();
- if (pTEOutliner != nullptr)
+ if (SdrOutliner* pTEOutliner = mpTextEditOutliner.release())
{
bool bModified = pTEOutliner->IsModified();
if (pTEOutlinerView != nullptr)
@@ -1659,6 +1658,7 @@ SdrEndTextEditKind SdrObjEditView::SdrEndTextEdit(bool bDontDeleteReally)
{
GetMarkedObjectListWriteAccess().SetNameDirty();
}
+ // coverity[leaked_storage] - if pTEOutliner wasn't deleted it didn't really belong to us
}
if (pTEObj && !pTEObj->getSdrModelFromSdrObject().isLocked() && pTEObj->GetBroadcaster())