Explorar el Código

Dispose memory manager on Engine dispose.

clementlandrin hace 1 año
padre
commit
aee881f6c9
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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() {