4 ms·
Memory allocated for the map is supposed to be freed when the variable goes out of scope.
by maxloh 3y ago
Memory allocated for the map is supposed to be freed when the variable goes out of scope.
- tgv 3y agoNope. It's freed when there's nothing referencing it any longer, at the next garbage collect. Here are common pitfalls: https://auth0.com/blog/four-types-of-leaks-in-your-javascript-code-and-how-to-get-rid-of-them/ https://auth0.com/blog/four-types-of-leaks-in-your-javascrip...