Closed dcb314 closed 3 years ago
I just tried to compile the package with clang. It said:
mpGLCanvas.cpp:481:19: warning: 'void operator delete ' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
Source code is
pixels = (GLbyte *)malloc(canvasWidth * canvasHeight * 3 * sizeof(GLbyte)); delete [] pixels;
Hello, Thanks for flagging the bug. I have checked in a change that uses new instead of the malloc which should correct the bug.
I just tried to compile the package with clang. It said:
mpGLCanvas.cpp:481:19: warning: 'void operator delete ' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
Source code is