Fixed small memory leaks