Bug 99010

Summary: Fix memory leak for the Pasteboard singleton
Product: WebKit Reporter: Mariusz Grzegorczyk <mariusz.g>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: gyuyoung.kim, mifenton, mjs, mrowe, rakuco, rwlbuis, tonikitoo, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch andersca: review-, buildbot: commit-queue-

Mariusz Grzegorczyk
Reported 2012-10-11 01:12:04 PDT
All ports have generalPasteboard() implementation looks similar to: Pasteboard* Pasteboard::generalPasteboard() { static Pasteboard* pasteboard = new Pasteboard(); return pasteboard; } Because of this, memory is not deallocated at application exit.
Attachments
patch (8.69 KB, patch)
2012-10-11 01:16 PDT, Mariusz Grzegorczyk
andersca: review-
buildbot: commit-queue-
Mariusz Grzegorczyk
Comment 1 2012-10-11 01:16:28 PDT
Build Bot
Comment 2 2012-10-11 01:23:51 PDT
Anders Carlsson
Comment 3 2012-10-11 11:54:29 PDT
Comment on attachment 168165 [details] patch No. Nowhere in WebKit do we free memory at exit; the OS is much better at doing that. In fact - we have warnings in place to catch this behavior and that's why the Mac build is failing.
Note You need to log in before you can comment on or make changes to this bug.