summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdograf.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-09-22 16:54:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-09-22 22:16:34 +0200
commit2a052cc921ee819c44794f5762023816e4c4343c (patch)
treebf2577a09b5b60402e97a651ab66ce4bbb7cecaa /svx/source/svdraw/svdograf.cxx
parent6bebb05bd4b338e1ed3dac2c02b8b4186dc79675 (diff)
ofz#10610 Direct-leak
Change-Id: If7cd5e7157419c5d3b3a7ff834613e7f6489047c Reviewed-on: https://gerrit.libreoffice.org/60900 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/svdraw/svdograf.cxx')
-rw-r--r--svx/source/svdraw/svdograf.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx
index 27b1e4d5eeb4..b22cdfac5412 100644
--- a/svx/source/svdraw/svdograf.cxx
+++ b/svx/source/svdraw/svdograf.cxx
@@ -755,7 +755,7 @@ void SdrGrafObj::AddToHdlList(SdrHdlList& rHdlList) const
{
SdrHdlList tempList(nullptr);
SdrRectObj::AddToHdlList( tempList );
- tempList.RemoveHdl(0);
+ delete tempList.RemoveHdl(0);
tempList.MoveTo(rHdlList);
}