Bug 1243754 - IonMonkey: Use 'delete' to destroy the ion script instead of 'free', r=jandem

This commit is contained in:
Hannes Verschore 2016-02-16 05:46:59 -05:00
parent 9e9e3d3f84
commit 58718a694f

View File

@ -1264,9 +1264,7 @@ void
IonScript::Destroy(FreeOp* fop, IonScript* script)
{
script->unlinkFromRuntime(fop);
// Frees the potential event we have set.
script->traceLoggerScriptEvent_ = TraceLoggerEvent();
fop->free_(script);
fop->delete_(script);
}
void