From ac0d28842d1eab8384f57d781cda45b9eda429d6 Mon Sep 17 00:00:00 2001 From: David Rajchenbach-Teller Date: Fri, 28 Aug 2015 15:31:20 +0200 Subject: [PATCH] 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 --- js/src/jsapi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp index 684441727265..9745b1a4c14e 100644 --- a/js/src/jsapi.cpp +++ b/js/src/jsapi.cpp @@ -333,7 +333,7 @@ IterPerformanceStats(JSContext* cx, continue; } js::AutoCompartment autoCompartment(cx, compartment); - PerformanceGroup* group = compartment->performanceMonitoring.getSharedGroup(cx); + mozilla::RefPtr group = compartment->performanceMonitoring.getSharedGroup(cx); if (group->data.ticks == 0) { // Don't report compartments that have never been used. continue;