mirror of
https://github.com/ioquake/jedi-outcast.git
synced 2024-11-10 07:11:42 +00:00
fix some uses of delete that should be delete[]
This commit is contained in:
parent
1496bedee4
commit
c5fceea9f3
1 changed files with 6 additions and 6 deletions
|
@ -326,7 +326,7 @@ void cStrings::Clear(void)
|
||||||
|
|
||||||
if (Reference)
|
if (Reference)
|
||||||
{
|
{
|
||||||
delete Reference;
|
delete[] Reference;
|
||||||
Reference = NULL;
|
Reference = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -349,7 +349,7 @@ void cStrings::SetReference(char *newReference)
|
||||||
{
|
{
|
||||||
if (Reference)
|
if (Reference)
|
||||||
{
|
{
|
||||||
delete Reference;
|
delete[] Reference;
|
||||||
Reference = NULL;
|
Reference = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -458,7 +458,7 @@ void cStringsSingle::Clear(void)
|
||||||
|
|
||||||
if (Text)
|
if (Text)
|
||||||
{
|
{
|
||||||
delete Text;
|
delete[] Text;
|
||||||
Text = NULL;
|
Text = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -470,7 +470,7 @@ void cStringsSingle::SetText(const char *newText)
|
||||||
|
|
||||||
if (Text)
|
if (Text)
|
||||||
{
|
{
|
||||||
delete Text;
|
delete[] Text;
|
||||||
Text = NULL;
|
Text = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -640,7 +640,7 @@ cStringPackage::~cStringPackage(void)
|
||||||
{
|
{
|
||||||
if (Reference)
|
if (Reference)
|
||||||
{
|
{
|
||||||
delete Reference;
|
delete[] Reference;
|
||||||
Reference = NULL;
|
Reference = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -649,7 +649,7 @@ void cStringPackage::SetReference(char *newReference)
|
||||||
{
|
{
|
||||||
if (Reference)
|
if (Reference)
|
||||||
{
|
{
|
||||||
delete Reference;
|
delete[] Reference;
|
||||||
Reference = NULL;
|
Reference = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue