diff --git a/code/qcommon/strip.cpp b/code/qcommon/strip.cpp index 4e6669f..3b9cb60 100644 --- a/code/qcommon/strip.cpp +++ b/code/qcommon/strip.cpp @@ -326,7 +326,7 @@ void cStrings::Clear(void) if (Reference) { - delete Reference; + delete[] Reference; Reference = NULL; } } @@ -349,7 +349,7 @@ void cStrings::SetReference(char *newReference) { if (Reference) { - delete Reference; + delete[] Reference; Reference = NULL; } @@ -458,7 +458,7 @@ void cStringsSingle::Clear(void) if (Text) { - delete Text; + delete[] Text; Text = NULL; } } @@ -470,7 +470,7 @@ void cStringsSingle::SetText(const char *newText) if (Text) { - delete Text; + delete[] Text; Text = NULL; } @@ -640,7 +640,7 @@ cStringPackage::~cStringPackage(void) { if (Reference) { - delete Reference; + delete[] Reference; Reference = NULL; } } @@ -649,7 +649,7 @@ void cStringPackage::SetReference(char *newReference) { if (Reference) { - delete Reference; + delete[] Reference; Reference = NULL; }