summaryrefslogtreecommitdiffstats
path: root/generic/tkbltGrMarkerOption.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/tkbltGrMarkerOption.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/tkbltGrMarkerOption.C')
-rw-r--r--generic/tkbltGrMarkerOption.C3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tkbltGrMarkerOption.C b/generic/tkbltGrMarkerOption.C
index b6eab57..6b13fd9 100644
--- a/generic/tkbltGrMarkerOption.C
+++ b/generic/tkbltGrMarkerOption.C
@@ -119,8 +119,7 @@ static void CoordsFreeProc(ClientData clientData, Tk_Window tkwin,
{
Coords* coordsPtr = *(Coords**)ptr;
if (coordsPtr) {
- if (coordsPtr->points)
- delete [] coordsPtr->points;
+ delete [] coordsPtr->points;
delete coordsPtr;
}
}