Summary: | HashTable internal index is not always deleted | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Frederic Marmond <fmarmond> | ||||||
Component: | JavaScriptCore | Assignee: | Alexey Proskuryakov <ap> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | ap, fmarmond, mario.bensi | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | PC | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Frederic Marmond
2008-10-28 08:48:01 PDT
Created attachment 24714 [details]
fix a memory leak on HashTable
Comment on attachment 24714 [details]
fix a memory leak on HashTable
HashTable::deleteTable is called from JSGlobalData destructor to avoid having destructors for static objects, which this patch would introduce.
However, the problem is real - in WebCore/bindings/js/JSDOMBinding.cpp, DOMObjectHashTableMap isn't properly cleaned up! This only affects worker threads though.
Created attachment 24719 [details]
proposed fix
Fix the problem in WebCore.
Comment on attachment 24719 [details]
proposed fix
r=me
Committed revision 37968. |