X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b326e313a0ce8ba54f6f0baac517faa80a2b744b..3bdc265d9d49ac78cb5000fbf3d694ed93d0e665:/src/common/xpmdecod.cpp diff --git a/src/common/xpmdecod.cpp b/src/common/xpmdecod.cpp index f05334ba3f..3b33170ab7 100644 --- a/src/common/xpmdecod.cpp +++ b/src/common/xpmdecod.cpp @@ -222,7 +222,11 @@ wxImage wxXPMDecoder::ReadFile(wxInputStream& stream) wxImage img = ReadData(xpm_lines); delete[] xpm_buffer; +#ifdef __WIN16__ + delete[] (char**) xpm_lines; +#else delete[] xpm_lines; +#endif return img; } #endif // wxUSE_STREAMS