diff options
Diffstat (limited to 'generic/tkbltGrMarkerLine.C')
-rw-r--r-- | generic/tkbltGrMarkerLine.C | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/generic/tkbltGrMarkerLine.C b/generic/tkbltGrMarkerLine.C index 954d4dc..82c9ab8 100644 --- a/generic/tkbltGrMarkerLine.C +++ b/generic/tkbltGrMarkerLine.C @@ -103,8 +103,7 @@ LineMarker::~LineMarker() { if (gc_) graphPtr_->freePrivateGC(gc_); - if (segments_) - delete [] segments_; + delete [] segments_; } int LineMarker::configure() @@ -151,11 +150,9 @@ void LineMarker::map() { LineMarkerOptions* ops = (LineMarkerOptions*)ops_; + delete [] segments_; + segments_ = NULL; nSegments_ = 0; - if (segments_) { - delete [] segments_; - segments_ = NULL; - } if (!ops->worldPts || (ops->worldPts->num < 2)) return; |