Memory leak if unity donot refresh

many api will leak memory and crash unity editor if turn off always refresh,
this problem will not happen in runtime

Thanks! I have fixed this now, and the fix will be included in the next update.

Fixed a memory leak which could happen if the game was not running, and the scene view was not being re-rendered, and a script was queuing drawing commands from an editor script repeatedly.
Drawing commands will now get discarded after 10 seconds if no rendering happens to avoid leaking memory indefinitely.

I’d still recommend that you do not draw from EditorWindow.Update since that is not synced to the same rate as rendering.