IDisposable frees memory