From 434e6a43cfa58ab88f91236fb9a9e915e644026f Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 21 Nov 2022 14:59:19 +0000 Subject: [PATCH] js: When removing the status bar, null out its variable It seems polite to allow it to be garbage-collected. --- emcclib.js | 1 + 1 file changed, 1 insertion(+) diff --git a/emcclib.js b/emcclib.js index d2316f1..47963bb 100644 --- a/emcclib.js +++ b/emcclib.js @@ -536,6 +536,7 @@ mergeInto(LibraryManager.library, { js_canvas_remove_statusbar: function() { if (statusbar !== null) statusbar.parentNode.removeChild(statusbar); + statusbar = null; }, /*