Explorar o código

Dispose memory manager on Engine dispose.

clementlandrin hai 1 ano
pai
achega
aee881f6c9
Modificáronse 1 ficheiros con 2 adicións e 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() {