summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/source/generic/poly.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index 664428426352..c00627965c64 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -516,11 +516,8 @@ bool ImplPolygon::operator==( const ImplPolygon& rCandidate) const
ImplPolygon::~ImplPolygon()
{
- if ( mpPointAry )
- delete[] mpPointAry;
-
- if( mpFlagAry )
- delete[] mpFlagAry;
+ delete[] mpPointAry;
+ delete[] mpFlagAry;
}
void ImplPolygon::ImplInitDefault()
@@ -586,8 +583,7 @@ void ImplPolygon::ImplSetSize( sal_uInt16 nNewSize, bool bResize )
else
pNewAry = nullptr;
- if ( mpPointAry )
- delete[] mpPointAry;
+ delete[] mpPointAry;
// take FlagArray into account, if applicable
if( mpFlagAry )