зеркало из https://github.com/mozilla/pjs.git
Bug 560138 - mismatch use of new[] with delete in CData::Create. r=dwitte
This commit is contained in:
Родитель
3d749f99d2
Коммит
80f490799e
|
@ -5162,7 +5162,7 @@ CData::Create(JSContext* cx,
|
||||||
*buffer = data;
|
*buffer = data;
|
||||||
if (!JS_SetReservedSlot(cx, dataObj, SLOT_DATA, PRIVATE_TO_JSVAL(buffer))) {
|
if (!JS_SetReservedSlot(cx, dataObj, SLOT_DATA, PRIVATE_TO_JSVAL(buffer))) {
|
||||||
if (ownResult)
|
if (ownResult)
|
||||||
delete data;
|
delete[] data;
|
||||||
delete buffer;
|
delete buffer;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче