OpenPHDGuiding / phd2

PHD2 Guiding
https://openphdguiding.org
BSD 3-Clause "New" or "Revised" License
244 stars 111 forks source link

Histogram builder: fix incorrect delete operator #1186

Closed Eyeke2 closed 2 months ago

Eyeke2 commented 2 months ago

Using delete instead of delete[] for memory allocated with new[] is a common mistake that can lead to undefined behavior. The consequences of this mismatch between allocation and deallocation mechanisms can vary depending on the compiler, the runtime environment, and the specifics of the program.

agalasso commented 2 months ago

@Eyeke2 thanks for the pr