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; } }