summaryrefslogtreecommitdiffstats
path: root/generic/tkbltGrPen.C
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkbltGrPen.C')
-rw-r--r--generic/tkbltGrPen.C3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tkbltGrPen.C b/generic/tkbltGrPen.C
index 42851d8..71e5fe9 100644
--- a/generic/tkbltGrPen.C
+++ b/generic/tkbltGrPen.C
@@ -48,8 +48,7 @@ Pen::Pen(Graph* graphPtr, const char* name, Tcl_HashEntry* hPtr)
Pen::~Pen()
{
- if (name_)
- delete [] name_;
+ delete [] name_;
if (hashPtr_)
Tcl_DeleteHashEntry(hashPtr_);