memory leak
Hi, I discovered a memory leak with torbutton. This can be checked with a debug build of Firefox. Alternatively, an assertion is triggered in cairo library firefox: /tmp/buildd/cairo-1.10.2/src/cairo-hash.c:196: _cairo_hash_table_destroy: Assertion `hash_table->live_entries == 0' failed. It looks like a window object is not released.
I could track it to torbutton_wrap_search_service. I looks like setting origEngineObj.getSubmission function causes the leak. The fix would be to get the object back at unload, and set getSubmission method function to null. I won't provide a patch right now because I did not clearly understood if the getSubmission replacement is done once or for each window.
Trac:
Username: arno