From 0801382ff2ea692d6ff8528ded596c8a58547da6 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 11 May 2024 12:40:57 -0400 Subject: [PATCH] Fix delete --- LEGO1/lego/legoomni/include/legopathstruct.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LEGO1/lego/legoomni/include/legopathstruct.h b/LEGO1/lego/legoomni/include/legopathstruct.h index 1884a81e..6ffdb20f 100644 --- a/LEGO1/lego/legoomni/include/legopathstruct.h +++ b/LEGO1/lego/legoomni/include/legopathstruct.h @@ -17,7 +17,7 @@ class LegoPathStructBase { virtual ~LegoPathStructBase() { if (m_name != NULL) { - delete m_name; + delete[] m_name; } }