Removed a huge memleak