No bug: Add missing ampersand in non-JS_THREADSAFE case. r=red
authorJim Blandy <jimb@mozilla.com>
Thu, 18 Nov 2010 10:51:56 -0800
changeset 58044 3e74fd36384731d6729e0fd9655b28655cfb241d
parent 58043 c2316a213ef0b8b96fd3c76946868481ef497b9c
child 58045 12d38422c622bbef90349e243b6633d59ffc49f0
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersred
milestone2.0b8pre
No bug: Add missing ampersand in non-JS_THREADSAFE case. r=red
js/src/jsscript.cpp
--- a/js/src/jsscript.cpp
+++ b/js/src/jsscript.cpp
@@ -1362,17 +1362,17 @@ DestroyScript(JSContext *cx, JSScript *s
 # ifdef JS_THREADSAFE
     if (data) {
         PurgeScriptFragments(&data->traceMonitor, script);
     } else {
         for (ThreadDataIter i(cx->runtime); !i.empty(); i.popFront())
             PurgeScriptFragments(&i.threadData()->traceMonitor, script);
     }
 # else
-    PurgeScriptFragments(JS_TRACE_MONITOR(cx), script);
+    PurgeScriptFragments(&JS_TRACE_MONITOR(cx), script);
 # endif
 #endif
 
 #if defined(JS_METHODJIT)
     mjit::ReleaseScriptCode(cx, script);
 #endif
     JS_REMOVE_LINK(&script->links);