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 9ba45bcf82
commit d2f35b7af9

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