HxGodot / hxgodot

A Haxe GDExtension for Godot 4
MIT License
232 stars 11 forks source link

Leaking stuff upon Application Exit #24

Closed dazKind closed 10 months ago

dazKind commented 1 year ago

image

The count varies depending on how many binding classes we register with the engine. So this is all stuff related to the extension and its registeration that doesnt get release correctly.

dazKind commented 1 year ago

Turns out these leaks are not necessarily harmful since they resemble Haxe Objects not GC'ed yet that still holding a reference to Godot Items. https://github.com/HxGodot/hxgodot/commit/316187cd37280154a558873753d4402ef390c2d6 adds better shutdown routines to clear all the statics we hold and reduces the orphaned items a lot. There are still some reported but it is unclear where these are coming from. We leave them for the moment

dazKind commented 10 months ago

fix in 0809ea3c63b412c8127bddce9b2147e1887755bb