godot/modules
Pedro J. Estébanez 46bfe4452f Fix object leaks caused by unfulfilled yields
Now the stack saved in a `GDScriptFunctionState` is cleared as soon as the `yield()` operation is known not to be resumed because either the script, the instance or both are deleted.

This clears problems like leaked objects by eliminating cases of circular references between `GDScriptFunctionState`s preventing them and the objects they refer to in their saved stacks from being released. As an example, this makes using `SceneTreeTimer` safer.

Furthermore, with this change it's now possible to print early warnings about `yield()`s to released script/instances, as now we know they won't be successfully resumed as the condition for that happens. However, this PR doesn't add such messages, to keep the observed behavior the same for the time being.

Also, now a backup of the function name in `GDScriptFunctionState` is used, since the script may not be valid by the time the function name is needed for the resume-after-yield error messages.
2020-05-05 17:54:15 +02:00
..
arkit Rename InputFilter back to Input 2020-04-28 15:19:49 +02:00
assimp
basis_universal
bmp
bullet Better damping implementation for Bullet rigid bodies 2020-04-27 18:24:33 +02:00
camera
csg Merge pull request #37717 from qarmin/world_fix 2020-05-04 16:37:40 +02:00
cvtt
dds Exposed RenderingDevice to script API 2020-04-20 21:21:58 -03:00
enet
etc Exposed RenderingDevice to script API 2020-04-20 21:21:58 -03:00
freetype
gdnative [Core] Rename linear_interpolate to lerp 2020-04-29 04:02:49 -04:00
gdnavigation
gdscript Fix object leaks caused by unfulfilled yields 2020-05-05 17:54:15 +02:00
glslang
gridmap Merge pull request #37717 from qarmin/world_fix 2020-05-04 16:37:40 +02:00
hdr
jpg
jsonrpc
mbedtls
mobile_vr Rename InputFilter back to Input 2020-04-28 15:19:49 +02:00
mono Remove some C++11 polyfill defines that are no longer needed 2020-05-03 00:42:04 +02:00
ogg
opensimplex NoiseTexture: prevent race condition because of Ref::unref() 2020-04-06 13:22:31 +02:00
opus
pvr Exposed RenderingDevice to script API 2020-04-20 21:21:58 -03:00
regex
squish
stb_vorbis
svg
tga
theora Exposed RenderingDevice to script API 2020-04-20 21:21:58 -03:00
tinyexr tinyexr: Enable C++11 threaded loading 2020-04-30 15:31:02 +02:00
upnp Improve error explanations related to UPNP and UPNPDevice 2020-04-13 02:25:39 -03:00
vhacd
visual_script Rename InputFilter back to Input 2020-04-28 15:19:49 +02:00
vorbis
webm Exposed RenderingDevice to script API 2020-04-20 21:21:58 -03:00
webp
webrtc
websocket
xatlas_unwrap Add caching the lightmap unwrapping on import 2020-04-22 15:34:00 +02:00
modules_builders.py
register_module_types.h
SCsub fixed modules not beeing added to vsproj 2020-04-09 15:15:52 +02:00