Implemented disposing memory