Browse Source

DRACOLoader: Revoke workerSourceURL. (#25174)

Michael Herzog 2 years ago
parent
commit
6e2fe97f32
1 changed files with 6 additions and 0 deletions
  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;
 
 	}