From dcb1f9e8f7de6c972ab4a12e27e863419bcdfddb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 23 Dec 2019 16:48:06 +0100 Subject: [PATCH] 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 --- src/common/imagiff.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/imagiff.cpp b/src/common/imagiff.cpp index 9f47504d66..032e1526a6 100644 --- a/src/common/imagiff.cpp +++ b/src/common/imagiff.cpp @@ -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; }