ChatTwo icon indicating copy to clipboard operation
ChatTwo copied to clipboard

Improve resource disposal practices

Open Seeker1437 opened this issue 7 months ago • 0 comments

Wraps enumerators and commands in proper using blocks to ensure cleanup. Adds async disposal for enumerators, reducing resource leakage risks.

Did some light testing, this should in theory remove the need to call

GC.Collect()
GC.WaitForPendingFinalizers()

but I left it in just to be safe

Seeker1437 avatar May 29 '25 20:05 Seeker1437