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
Родитель 2be1d3e641
Коммит ac0d28842d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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