Kaydet (Commit) 2a0dd33a authored tarafından Ivan Timofeev's avatar Ivan Timofeev

fdo#67871: Revert "coverity#705731 Resource leak"

... and delete pContourPolyPolygon instead. Otherwise there is a null pointer
dereference.

This reverts commit e3258713.

Change-Id: Id9d8c514c786b42233a35a9ade55d0c05986fb08
üst bb3a290e
......@@ -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
......
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