Kaydet (Commit) 42c59d7c authored tarafından Caolán McNamara's avatar Caolán McNamara

Revert "just delete, don't check for null and then delete"

no time for this

This reverts commit 4b941b7b.
üst 3f501d15
......@@ -516,8 +516,11 @@ bool ImplPolygon::operator==( const ImplPolygon& rCandidate) const
ImplPolygon::~ImplPolygon()
{
delete[] mpPointAry;
delete[] mpFlagAry;
if ( mpPointAry )
delete[] mpPointAry;
if( mpFlagAry )
delete[] mpFlagAry;
}
void ImplPolygon::ImplInitDefault()
......@@ -583,7 +586,8 @@ void ImplPolygon::ImplSetSize( sal_uInt16 nNewSize, bool bResize )
else
pNewAry = nullptr;
delete[] mpPointAry;
if ( mpPointAry )
delete[] mpPointAry;
// take FlagArray into account, if applicable
if( mpFlagAry )
......
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