diff options
| author | Ignacio Etcheverry | 2017-12-31 22:37:57 +0100 |
|---|---|---|
| committer | Ignacio Etcheverry | 2018-01-01 03:05:13 +0100 |
| commit | b271aa48e4e0af3d9abb998ac9c03eae3b65825a (patch) | |
| tree | bfb6702c16a72a476d7969283e8f8e51da9470fd /platform/javascript/power_javascript.cpp | |
| parent | e350a56efd8d307a989414b474960468a67550d1 (diff) | |
| download | godot-b271aa48e4e0af3d9abb998ac9c03eae3b65825a.tar.gz godot-b271aa48e4e0af3d9abb998ac9c03eae3b65825a.tar.zst godot-b271aa48e4e0af3d9abb998ac9c03eae3b65825a.zip | |
Mono: Script lifetime fixes
- alloc_language_binding: Use strong GC handle as well for references. Fixes #15138
- Set the native instance field of Godot.Object to IntPtr.Zero when it's freed.
- Create weak handles without tracking resurrection (that was causing trouble). This means we have to call notification predelete before queueing a native Object for deletion, and use the MonoObject* passed by the finalizer because the weak GC handle target will return NULL at this point.
Diffstat (limited to 'platform/javascript/power_javascript.cpp')
0 files changed, 0 insertions, 0 deletions
