mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Add missing JSAutoRequest calls. (hopefully all of them have been spotted now)
Patch by echotangoecho, refs #4053 This was SVN commit r18730.
This commit is contained in:
@@ -465,7 +465,10 @@ u32 CBinarySerializerScriptImpl::GetScriptBackrefTag(JS::HandleObject obj)
|
||||
if (m_ScriptBackrefs.find(obj, tag))
|
||||
return tag;
|
||||
|
||||
m_ScriptBackrefs.add(m_ScriptInterface.GetContext(), obj, m_ScriptBackrefsNext);
|
||||
JSContext* cx = m_ScriptInterface.GetContext();
|
||||
JSAutoRequest rq(cx);
|
||||
|
||||
m_ScriptBackrefs.add(cx, obj, m_ScriptBackrefsNext);
|
||||
|
||||
m_ScriptBackrefsNext++;
|
||||
// Return a non-tag number so callers know they need to serialize the object
|
||||
|
||||
Reference in New Issue
Block a user