diff --git a/Source/Core/DolphinWX/Src/MemcardManager.cpp b/Source/Core/DolphinWX/Src/MemcardManager.cpp index d2c46724ea..e85e799ba5 100644 --- a/Source/Core/DolphinWX/Src/MemcardManager.cpp +++ b/Source/Core/DolphinWX/Src/MemcardManager.cpp @@ -66,7 +66,7 @@ wxBitmap wxBitmapFromMemoryRGBA(const unsigned char* data, int width, int height wxMemoryInputStream is(pdata, bytes); wxBitmap map(wxImage(is, wxBITMAP_TYPE_BMP, -1), -1); - delete pdata; + delete [] pdata; return map; }