]> git.mxchange.org Git - flightgear.git/commit
Fix crash with Nasal bindings.
authorJames Turner <zakalawe@mac.com>
Tue, 15 Apr 2014 13:13:46 +0000 (14:13 +0100)
committerJames Turner <zakalawe@mac.com>
Tue, 15 Apr 2014 13:13:46 +0000 (14:13 +0100)
commitb3c7cb7c151858ef79f9371a29be49915e5d3803
tree521ae09c63d0b5aa16c240a9cd51744947088dff
parent740b3f35e98b8c0506bc887326ef831704520f89
Fix crash with Nasal bindings.

naBindFunction doesn't save the function code to the global
hash, so pass an explicit context to various 'call' overloads so
the function can't be GC-ed in between parsing and calling.

(Patch by Nicholas Scheel)

https://code.google.com/p/flightgear-bugs/issues/detail?id=1397
src/Scripting/NasalSys.cxx
src/Scripting/NasalSys.hxx