summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2013-08-08 18:44:57 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2013-08-08 18:56:12 +0400
commit2a0dd33a384009dcc92238cec344c9b0e98cf25f (patch)
tree9ccb41c8d63b0399664155ee1ae409465368654f /svx
parentbb3a290e3b602169d3bee98108a8380dce51b608 (diff)
fdo#67871: Revert "coverity#705731 Resource leak"
... and delete pContourPolyPolygon instead. Otherwise there is a null pointer dereference. This reverts commit e3258713793f03d6cf96c19ff4c5d15a0cd666f1. Change-Id: Id9d8c514c786b42233a35a9ade55d0c05986fb08
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdotext.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index 4a5a646e6269..64cdc5b22942 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -601,6 +601,7 @@ void SdrTextObj::ImpSetContourPolygon( SdrOutliner& rOutliner, Rectangle& rAncho
{
// Take line width into account.
// When doing the hit test, avoid this. (Performance!)
+ pContourPolyPolygon = new basegfx::B2DPolyPolygon();
// test if shadow needs to be avoided for TakeContour()
const SfxItemSet& rSet = GetObjectItemSet();
@@ -636,6 +637,7 @@ void SdrTextObj::ImpSetContourPolygon( SdrOutliner& rOutliner, Rectangle& rAncho
}
rOutliner.SetPolygon(aXorPolyPolygon, pContourPolyPolygon);
+ delete pContourPolyPolygon;
}
void SdrTextObj::TakeUnrotatedSnapRect(Rectangle& rRect) const