From 6695ae95e7ce9c638e3f00e23b4fd1aee61ba63c Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Thu, 4 Jan 2024 14:31:14 -0500 Subject: [PATCH] Fix deletion of modeArray --- LEGO1/mxdirectdraw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LEGO1/mxdirectdraw.cpp b/LEGO1/mxdirectdraw.cpp index 12a7cde0..fa030eb8 100644 --- a/LEGO1/mxdirectdraw.cpp +++ b/LEGO1/mxdirectdraw.cpp @@ -1127,6 +1127,6 @@ MxDirectDraw::DeviceModesInfo::~DeviceModesInfo() } if (m_modeArray != NULL) { - delete m_modeArray; + delete[] m_modeArray; } }