Skip to content

Commit

Permalink
remove finalizers per PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Dice <[email protected]>
  • Loading branch information
dicej committed Aug 29, 2024
1 parent 34afca0 commit 694fd92
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions crates/csharp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,6 @@ impl InterfaceGenerator<'_> {
public void Dispose() {{
Dispose(true);
GC.SuppressFinalize(this);
}}
[DllImport("{module_name}", EntryPoint = "[resource-drop]{name}"), WasmImportLinkage]
Expand All @@ -1475,10 +1474,6 @@ impl InterfaceGenerator<'_> {
Handle = 0;
}}
}}
~{upper_camel}() {{
Dispose(false);
}}
"#
);
}
Expand Down

0 comments on commit 694fd92

Please sign in to comment.