views:

67

answers:

1

I have an addon, which is pretty big, and I need to understand some things...

  • What causes memory leak on a Firefox addon?
  • How can I find what is causing the leak?
  • How can I fix the leak?

The addon adds some elements on the page, request parts of the page and update the DOM. The memory increases each time I reload the page, and the memory is not released even after closing the tab.

+1  A: 

Here is a Firefox extension which can catch some types of memory leaks. There is more documentation on debugging leaks here, but it's a little hard to read.

Annie