summaryrefslogtreecommitdiff
path: root/modules/mono/godotsharp_dirs.cpp
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2017-12-31 22:37:57 +0100
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2018-01-01 03:05:13 +0100
commitb271aa48e4e0af3d9abb998ac9c03eae3b65825a (patch)
treebfb6702c16a72a476d7969283e8f8e51da9470fd /modules/mono/godotsharp_dirs.cpp
parente350a56efd8d307a989414b474960468a67550d1 (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/godotsharp_dirs.cpp')
0 files changed, 0 insertions, 0 deletions