Fix Memory Management in Core Fondation;

Removed the Memory Leak