From ad5ddb707dabffa885555e5695dd0aaa69fbdd7d Mon Sep 17 00:00:00 2001 From: trav90 Date: Fri, 12 Aug 2016 02:41:25 -0500 Subject: [PATCH] Use nsRefPtr when not defering release of WrappedJS Followup to commit 89d161c --- js/xpconnect/src/XPCMaps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/xpconnect/src/XPCMaps.cpp b/js/xpconnect/src/XPCMaps.cpp index 4c1ac6cac3..0291e86ca4 100644 --- a/js/xpconnect/src/XPCMaps.cpp +++ b/js/xpconnect/src/XPCMaps.cpp @@ -90,7 +90,7 @@ JSObject2WrappedJSMap::UpdateWeakPointersAfterGC(XPCJSRuntime* runtime) // Check all wrappers and update their JSObject pointer if it has been // moved. Release any wrappers whose weakly held JSObject has died. - nsTArray> dying; + nsTArray> dying; for (Map::Enum e(mTable); !e.empty(); e.popFront()) { nsXPCWrappedJS* wrapper = e.front().value();