fix some uses of delete that should be delete[]

This commit is contained in:
Jonathan Gray 2013-04-21 01:59:35 +10:00
parent 1496bedee4
commit c5fceea9f3
1 changed files with 6 additions and 6 deletions

View File

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