From 61414ef82cd7e044cfb43f61d2e6e0da03767846 Mon Sep 17 00:00:00 2001 From: Roman Masanin <52833910+theR4K@users.noreply.github.com> Date: Wed, 12 Jul 2023 00:04:28 +0200 Subject: [PATCH] Update LEGO1/mxdirectdraw.cpp Co-authored-by: MattKC <34096995+itsmattkc@users.noreply.github.com> --- LEGO1/mxdirectdraw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LEGO1/mxdirectdraw.cpp b/LEGO1/mxdirectdraw.cpp index 8a23f2c0..1647bb29 100644 --- a/LEGO1/mxdirectdraw.cpp +++ b/LEGO1/mxdirectdraw.cpp @@ -34,12 +34,12 @@ MxDirectDraw::DeviceModesInfo::~DeviceModesInfo() { if (p_guid != NULL) { - free(p_guid); + delete p_guid; } if (m_mode_ARRAY != NULL) { - free(m_mode_ARRAY); + delete m_mode_ARRAY; } }