Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Add revokeObjectURL to free up some memory #1016

Benjamin King850a610b0abe
diff --git a/web/js/animation/gif-stream.js b/web/js/animation/gif-stream.js
index db94f0f0c..70f9ba485 100644
--- a/web/js/animation/gif-stream.js
+++ b/web/js/animation/gif-stream.js
@@ -135,6 +135,7 @@ export default class GifStream {
img.delay = frame.delay;
img.crossOrigin = 'Anonymous';
img.onload = () => {
+ URL.revokeObjectURL(img.src); // Free up some memory
resolve(img);
delete img.onload;
delete img.onerror;