totalcross
totalcross copied to clipboard
Safety of delete in releaseProc for skia_makeBitmap
I am ok with first implementation because It says the void* is an array and the members memory chunk is 4 byte. The "operator" is extra expression since it is for class inside operator overloading The new implementation is super dangerous, we should use global 'sized delete[]' operator (Cpp14) to release the memory without leaking and safely.
Originally posted by @Farshid-Monhaseri in https://github.com/TotalCross/totalcross/pull/127#discussion_r562304518