Ver código fonte

Dispose memory manager on Engine dispose.

clementlandrin 1 ano atrás
pai
commit
aee881f6c9
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      h3d/Engine.hx

+ 2 - 0
h3d/Engine.hx

@@ -424,6 +424,8 @@ class Engine {
 	public function dispose() {
 		driver.dispose();
 		window.removeResizeEvent(onWindowResize);
+		if ( mem != null )
+			mem.dispose();
 	}
 
 	function get_fps() {