Skip to content

Commit 0926e20

Browse files
authored
Merge pull request #97 from xodial/xodial/fix-leaks
fix: extend RefCounted in GodotObjectAdapter
2 parents a5b1455 + a84449d commit 0926e20

File tree

2 files changed

+2
-2
lines changed
  • Chickensoft.GodotNodeInterfaces/src/added_functionality
  • Chickensoft.GodotNodeInterfacesGenerator/src

2 files changed

+2
-2
lines changed

Chickensoft.GodotNodeInterfaces/src/added_functionality/Adapters.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public interface IGodotObjectAdapter : IGodotObject {
99
}
1010

1111
/// <summary>A Godot node API adapter.</summary>
12-
public partial interface INodeAdapter : IGodotObjectAdapter, INode {
12+
public partial interface INodeAdapter : IGodotObjectAdapter, INode {
1313
/// <summary>Underlying Godot node this adapter uses.</summary>
1414
public new Node TargetObj { get; }
1515
}

Chickensoft.GodotNodeInterfacesGenerator/src/Main.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ defaultValue is null &&
327327

328328
var adapterParent = extendsAnotherObj
329329
? $"{baseType.Name}Adapter, "
330-
: "GodotObject, ";
330+
: "RefCounted, ";
331331

332332
var adapterBaseCall = extendsAnotherObj
333333
? " : base(@object) "

0 commit comments

Comments
 (0)