Steps to reproduce: 1. Adding logging in MediaResourceLoader constructor / destructor (ideally with a static count) 2. Go to reddit.com and scroll down for a while -> Notice that we keep constructing MediaResourceLoader objects but that they are never destroyed 3. Navigate tab to about:blank (tab keeps using the same process) 4. Send a memory pressure signal: notifyutil -p org.WebKit.lowMemory -> Notice that the MediaResourceLoader still do not get destroyed.
Created attachment 391794 [details] Logging patch to demonstrate leak
Created attachment 391795 [details] Memgraph
Created attachment 391833 [details] Patch
(In reply to Peng Liu from comment #3) > Created attachment 391833 [details] > Patch Thanks for fixing!
<rdar://problem/59854658>
Comment on attachment 391833 [details] Patch Clearing flags on attachment: 391833 Committed r257581: <https://trac.webkit.org/changeset/257581>
All reviewed patches have been landed. Closing bug.