totalcross icon indicating copy to clipboard operation
totalcross copied to clipboard

Safety of delete in releaseProc for skia_makeBitmap

Open flsobral opened this issue 4 years ago • 0 comments

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

flsobral avatar Jan 28 '21 10:01 flsobral