Memory Leak and Encapsulation