diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-12-31 22:37:57 +0100 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2018-01-01 03:05:13 +0100 |
commit | b271aa48e4e0af3d9abb998ac9c03eae3b65825a (patch) | |
tree | bfb6702c16a72a476d7969283e8f8e51da9470fd /modules/mono/editor/bindings_generator.h | |
parent | e350a56efd8d307a989414b474960468a67550d1 (diff) |
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 'modules/mono/editor/bindings_generator.h')
0 files changed, 0 insertions, 0 deletions