I have an ASP.NET application that has multiple helper classes. I'm a little worried about Memory leaks. Each time i want to use a helper class member function i call them like this new SampleHandler().DoFunction();
Since it dosen't have any strong reference to the object created can I guarantee whether GC will clear the memory for the object created ?
Since there is a high chance for me that I won't be using the object again in the page I started coding like this.
Note: There are numerous calls to various member functions belonging to different helper classes in the code behind file performed in the same way.