-
-
Notifications
You must be signed in to change notification settings - Fork 712
Closed
Labels
bugThis has been identified as a bugThis has been identified as a bug
Description
Ref of custom type T leaks if it is created from gdnative module.
Ref<A> a;
a.instance(); //leaksRef of Godot type T is freed correctly.
Ref<File> f;
f.instance(); //okCustom type instances created from gdscript are freed correctly as well.
var a = load('res://a.gdns').new() #okUpdate:
As a workaround I'm currently using a = Ref<A>::__internal_constructor(A::_new()); instead of a.instance which seems to work fine.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugThis has been identified as a bugThis has been identified as a bug