bytecodealliance / bytecodealliance/componentize-dotnet
Imported Resources don't provide a finalizer
Aperta
- Lingua principale
- C#
- Stelle
- 147
- Fork
- 18
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
````
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.