Fixes Memory Leak