bytecodealliance / bytecodealliance/componentize-dotnet

Imported Resources don't provide a finalizer

Offen
#58 8 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C#
Sterne
147
Forks
18
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Currently, projections for imported resources implement `IDisposable`, but they do not provide a `finalizer`. This means that if the user forgets to manually dispose the resource, its `[resource-drop]` function is never called.

I believe this is incorrect, and the resource should provide a finalizer that calls the resource's `[resource-drop]` function.

---

Version:
````xml

````

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.