[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #3755 [Torbutton]: memory leak
#3755: memory leak
-----------------------+----------------------------------------------------
Reporter: arno | Owner: mikeperry
Type: defect | Status: new
Priority: normal | Milestone:
Component: Torbutton | Version:
Keywords: | Parent:
Points: | Actualpoints:
-----------------------+----------------------------------------------------
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.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3755>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs