More memory leak fixes in IDE