Removed some potential memory leaks