]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed delete[]/free mismatch in SetAlpha (part of patch 991168)
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Jul 2004 23:18:10 +0000 (23:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Jul 2004 23:18:10 +0000 (23:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/image.cpp

index dbcff9c8837ba12ce57c309a2d3ddee3697ceddf..6f6bba4117df203b7bb0ca4cf32ada79e13b06e6 100644 (file)
@@ -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;
 }