From 0393488f397e7c2d139ebc2717977e627bcc2874 Mon Sep 17 00:00:00 2001 From: Victor Homyakov Date: Mon, 21 Mar 2016 14:07:26 +0300 Subject: [PATCH] Free memory allocated by testElement after usage IE11 reports `testElement` as detached DOM node consuming memory. It is captured in closure of `setInnerHTML` function and could be safely cleared after feature test. --- src/renderers/dom/client/utils/setInnerHTML.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderers/dom/client/utils/setInnerHTML.js b/src/renderers/dom/client/utils/setInnerHTML.js index 222ddfbdceba7..1e491bfaf3820 100644 --- a/src/renderers/dom/client/utils/setInnerHTML.js +++ b/src/renderers/dom/client/utils/setInnerHTML.js @@ -79,6 +79,7 @@ if (ExecutionEnvironment.canUseDOM) { } }; } + testElement = null; } module.exports = setInnerHTML;