JavaScript Jabber cover image

Things JavaScript Developers Should Know, Part 2 - JSJ 485

JavaScript Jabber

00:00

A Weak Reference Does Not Prevent Garbage Collection

The code that maps thethe users to the phones, actually has a reference to that user object. So even though your code has let go of the user object, that map is still holding on to it memory leak. You need to modify your code so that when you no longer need a user, you need to explicitly remove that user from the map in order to do to avoid a memory leak.

Play episode from 45:10
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app