-
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
- Set
IsDisposedonthistotrue GC.SupressFinalize(this)- Add
(Type, Handle)toThreadLocal<List<Type, nuint>> ToDispose
Checkthread function:
if(!ToDispose.Value.IsEmpty){
for((type, ptr) in ToDispose.Value)
type switch
{
typeof(View) => Methods.ulDestroyView((Handle<View>)ptr),
_ => throw new OutOfRangeException()
};
ToDispose.Value.Clear(); // make sure it cleans up internal array
}Metadata
Metadata
Assignees
Labels
No labels