Bug 72416 - Leaks seen in MemoryPressureHandlerMac.mm on Leaks bot
Summary: Leaks seen in MemoryPressureHandlerMac.mm on Leaks bot
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.7
: P2 Normal
Assignee: Michael Saboff
URL: http://build.webkit.org/LeaksViewer/?...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-11-15 14:10 PST by Adam Roben (:aroben)
Modified: 2011-11-17 14:49 PST (History)
3 users (show)

See Also:


Attachments
Proposed Patch (2.77 KB, patch)
2011-11-17 13:58 PST, Michael Saboff
ggaren: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2011-11-15 14:10:55 PST
http://build.webkit.org/LeaksViewer/?url=%2Fresults%2FLion%20Intel%20Leaks%2Fr100308%20%28129%29%2F shows that _cache_event_source and _timer_event_source in MemoryPressureHandlerMac.mm are being leaked.

It looks like MemoryPressureHandler::uninstall is canceling but not releasing _cache_event_source.

It looks like MemoryPressureHandler::holdOff will overwrite _timer_event_source without canceling or releasing it. (Perhaps uninstall should be doing this?)
Comment 1 Radar WebKit Bug Importer 2011-11-15 14:11:09 PST
<rdar://problem/10450686>
Comment 2 Michael Saboff 2011-11-17 13:58:48 PST
Created attachment 115670 [details]
Proposed Patch
Comment 3 Geoffrey Garen 2011-11-17 14:00:46 PST
Comment on attachment 115670 [details]
Proposed Patch

r=me
Comment 4 Michael Saboff 2011-11-17 14:49:46 PST
Committed r100681: <http://trac.webkit.org/changeset/100681>