X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d30ee785c216be96e1fdf0488d5891e93340700f..a290fa5a7deebe9d96c0c0089d18e27d4bd9b624:/src/common/image.cpp diff --git a/src/common/image.cpp b/src/common/image.cpp index dbcff9c883..6f6bba4117 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -817,7 +817,7 @@ void wxImage::SetAlpha( unsigned char *alpha ) alpha = (unsigned char *)malloc(M_IMGDATA->m_width*M_IMGDATA->m_height); } - delete [] M_IMGDATA->m_alpha; + free(M_IMGDATA->m_alpha); M_IMGDATA->m_alpha = alpha; }