SyntaxFix
Write A Post
Hire A Developer
Questions
The .NET garbage collector takes care of all this for you.
It is able to determine when objects are no longer referenced and will (eventually) free the memory that had been allocated to them.