зеркало из https://github.com/mozilla/gecko-dev.git
missing [] on delete of internal array in operator=.
This commit is contained in:
Родитель
a1620436bb
Коммит
e4462b13c1
|
@ -40,7 +40,7 @@ nsVoidArray::nsVoidArray(PRInt32 aCount)
|
|||
nsVoidArray& nsVoidArray::operator=(const nsVoidArray& other)
|
||||
{
|
||||
if (nsnull != mArray) {
|
||||
delete mArray;
|
||||
delete [] mArray;
|
||||
}
|
||||
PRInt32 otherCount = other.mCount;
|
||||
mArraySize = otherCount;
|
||||
|
|
|
@ -40,7 +40,7 @@ nsVoidArray::nsVoidArray(PRInt32 aCount)
|
|||
nsVoidArray& nsVoidArray::operator=(const nsVoidArray& other)
|
||||
{
|
||||
if (nsnull != mArray) {
|
||||
delete mArray;
|
||||
delete [] mArray;
|
||||
}
|
||||
PRInt32 otherCount = other.mCount;
|
||||
mArraySize = otherCount;
|
||||
|
|
Загрузка…
Ссылка в новой задаче