mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
deallocate arrays properly
This commit is contained in:
parent
afd9114eea
commit
1612f144ef
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user