topasmc / dicom-interface

DICOM RT Interface for TOPAS
MIT License
23 stars 8 forks source link

rect3d bug #7

Closed ferdymercury closed 4 years ago

ferdymercury commented 4 years ago

I think when one calls

x = new int[N]

then in the destructor it should say delete[] x; with the square brackets.

See http://www.cplusplus.com/reference/new/operator%20delete[]/

ferdymercury commented 4 years ago

See also http://www.cplusplus.com/forum/general/36130/

jungwookshin commented 4 years ago

Thanks! Yes, memory of array should be released in with the square brackets!