File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes question about leak Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "question about leak" Watch "question about leak" New topic

question about leak

simon tiberius

Joined: Oct 30, 2012
Posts: 29

will this snippet leak? I have some assumptions:
1. in old browsers, there can only be one page in each browser window. so in old browsers, closing the browser window will clear the leak. but in newer browsers where one browser window can accommodate multiple tabs which means that one browser window can accommodate multiple pages at once, closing the one tab containing the snippet above is enough to solve the leak. so in newer browsers, no need to close other tabs that don't contain the snippet right? just the one containing the snippet is enough to "plug" the leak.
2. if I change the code to this:

will this plug the leak altogether?
I agree. Here's the link:
subject: question about leak
It's not a secret anymore!