Bug 1199643 - Fix unsafe use of PerformanceGroup. r=jandem

--HG--
extra : transplant_source : %C6%29Z%EE%CE%01%9B%D6%E6%07%20%ADl1%A8%D8%C6%9E%05%06
This commit is contained in:
David Rajchenbach-Teller 2015-08-28 15:31:20 +02:00
parent 2be1d3e641
commit ac0d28842d

View File

@ -333,7 +333,7 @@ IterPerformanceStats(JSContext* cx,
continue; continue;
} }
js::AutoCompartment autoCompartment(cx, compartment); js::AutoCompartment autoCompartment(cx, compartment);
PerformanceGroup* group = compartment->performanceMonitoring.getSharedGroup(cx); mozilla::RefPtr<PerformanceGroup> group = compartment->performanceMonitoring.getSharedGroup(cx);
if (group->data.ticks == 0) { if (group->data.ticks == 0) {
// Don't report compartments that have never been used. // Don't report compartments that have never been used.
continue; continue;