summaryrefslogtreecommitdiffstats
path: root/generic/tkbltGrMarkerPolygon.C
diff options
context:
space:
mode:
authorAdrián Medraño Calvo <adrian@medranocalvo.com>2017-07-28 06:54:06 (GMT)
committerAdrián Medraño Calvo <adrian@medranocalvo.com>2017-07-28 07:11:19 (GMT)
commitd2c078754fbaee1bd22d77202f9af3d706f45b94 (patch)
treede4a975872eca1b01fc9ac74f175af98e7283ee5 /generic/tkbltGrMarkerPolygon.C
parente8635888a9d67eff399ad5d5fdded50dcc7e843a (diff)
downloadblt-d2c078754fbaee1bd22d77202f9af3d706f45b94.zip
blt-d2c078754fbaee1bd22d77202f9af3d706f45b94.tar.gz
blt-d2c078754fbaee1bd22d77202f9af3d706f45b94.tar.bz2
Stop checking for NULL before free
The 'delete' operator checks whether the lvalue is NULL before freeing.
Diffstat (limited to 'generic/tkbltGrMarkerPolygon.C')
-rw-r--r--generic/tkbltGrMarkerPolygon.C9
1 files changed, 3 insertions, 6 deletions
diff --git a/generic/tkbltGrMarkerPolygon.C b/generic/tkbltGrMarkerPolygon.C
index 3b67272..383d0e8 100644
--- a/generic/tkbltGrMarkerPolygon.C
+++ b/generic/tkbltGrMarkerPolygon.C
@@ -103,12 +103,9 @@ PolygonMarker::~PolygonMarker()
Tk_FreeGC(graphPtr_->display_, fillGC_);
if (outlineGC_)
graphPtr_->freePrivateGC(outlineGC_);
- if (fillPts_)
- delete [] fillPts_;
- if (outlinePts_)
- delete [] outlinePts_;
- if (screenPts_)
- delete [] screenPts_;
+ delete [] fillPts_;
+ delete [] outlinePts_;
+ delete [] screenPts_;
}
int PolygonMarker::configure()