Fixed Memory Leak.