From 5402d21de1aa52fd5c332f9a8630fefa6f449bd9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 30 Jul 2004 23:18:10 +0000 Subject: [PATCH] fixed delete[]/free mismatch in SetAlpha (part of patch 991168) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.45.2