3 ms·
It is very basic - but then again, just about any concept in coding is when you look at it from the perspective of the principals involved. But take something b
by ComputerGuru 18y ago
It is very basic - but then again, just about any concept in coding is when you look at it from the perspective of the principals involved. But take something basic (a malloc command) - pass the object around back and forth, left and right, across multiple classes and libraries, casting it this way and that, and you'll realize that you've got objects that aren't being freed right - and when you attempt to free them, you're application will crash since other bits of code need access to what you just trashed from the memory.
I'm not defending the FF team - I think they've done a terrible job managing memory in their browser... but it's an understandable mistake and doesn't come from ignoring the rules so much as it is not picturing the entire codebase in your head when passing objects around.