Memory Leak Fixes.