mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
Use nsRefPtr when not defering release of WrappedJS
Followup to commit 89d161c
This commit is contained in:
@@ -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<RefPtr<nsXPCWrappedJS>> dying;
|
||||
nsTArray<nsRefPtr<nsXPCWrappedJS>> dying;
|
||||
|
||||
for (Map::Enum e(mTable); !e.empty(); e.popFront()) {
|
||||
nsXPCWrappedJS* wrapper = e.front().value();
|
||||
|
||||
Reference in New Issue
Block a user