Explorar el Código

DRACOLoader: Revoke workerSourceURL. (#25174)

Michael Herzog hace 2 años
padre
commit
6e2fe97f32
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      examples/jsm/loaders/DRACOLoader.js

+ 6 - 0
examples/jsm/loaders/DRACOLoader.js

@@ -351,6 +351,12 @@ class DRACOLoader extends Loader {
 
 		this.workerPool.length = 0;
 
+		if ( this.workerSourceURL !== '' ) {
+
+			URL.revokeObjectURL( this.workerSourceURL );
+
+		}
+
 		return this;
 
 	}