[DF-2355] - Memory Leaks fixes in UIEditor.