From 1612f144efcb1e280b17161f99f41c7c36d2653e Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 14 Mar 2007 21:08:57 +0000 Subject: [PATCH] deallocate arrays properly --- direct/src/motiontrail/cMotionTrail.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/motiontrail/cMotionTrail.cxx b/direct/src/motiontrail/cMotionTrail.cxx index e9be3b9cf2..45d07671f0 100644 --- a/direct/src/motiontrail/cMotionTrail.cxx +++ b/direct/src/motiontrail/cMotionTrail.cxx @@ -709,7 +709,7 @@ update_motion_trail (float current_time, LMatrix4f *transform) { } } - delete nurbs_curve_result_array; + delete[] nurbs_curve_result_array; } else { @@ -834,7 +834,7 @@ update_motion_trail (float current_time, LMatrix4f *transform) { // end geometry this -> end_geometry ( ); - delete _vertex_array; + delete[] _vertex_array; _vertex_array = 0; } }