Pregunta de entrevista de Allscripts

What is Dispose()? How do you avoid memory leaks?