Fix another mismatching delete in IFF image handler code

This is similar to the previous commit and fixes the same problem in
another place.

See https://github.com/wxWidgets/wxWidgets/pull/1684
This commit is contained in:
Vadim Zeitlin
2019-12-23 16:48:06 +01:00
parent 3b52ed60bb
commit dcb1f9e8f7

View File

@@ -530,7 +530,7 @@ int wxIFFDecoder::ReadIFF()
pal[3*i + 1] = 0;
pal[3*i + 2] = 0;
}
delete m_image->pal;
delete[] m_image->pal;
m_image->pal = pal;
m_image->colors = colors;
}