Bug 64241

Summary: WebKit2 is leaking NSCursors created by leakNamedCursor
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal CC: darin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch oliver: review+

Anders Carlsson
Reported 2011-07-10 11:30:54 PDT
WebKit2 is leaking NSCursors created by leakNamedCursor
Attachments
Patch (12.75 KB, patch)
2011-07-10 11:40 PDT, Anders Carlsson
oliver: review+
Anders Carlsson
Comment 1 2011-07-10 11:40:04 PDT
Darin Adler
Comment 2 2011-07-10 12:41:42 PDT
Wouldn’t it be better to cache each of these NSCursor objects exactly once?
Darin Adler
Comment 3 2011-07-10 12:41:53 PDT
Except for the custom cursor one?
Anders Carlsson
Comment 4 2011-07-10 16:10:41 PDT
(In reply to comment #2) > Wouldn’t it be better to cache each of these NSCursor objects exactly once? We're already caching them in the Cursor singletons in WebKit1, and for WebKit2 that's what the forcing of platformCursor does. I don't like the idea of having three levels of caches for some Cursors (WKSI, CursorMac.mm and Cursor.cpp).
Darin Adler
Comment 5 2011-07-10 17:32:08 PDT
(In reply to comment #4) > for WebKit2 that's what the forcing of platformCursor does So I guess that’s the real fix. Not sure the rest of this patch was needed.
Anders Carlsson
Comment 6 2011-07-10 19:02:15 PDT
(In reply to comment #5) > (In reply to comment #4) > > for WebKit2 that's what the forcing of platformCursor does > > So I guess that’s the real fix. Not sure the rest of this patch was needed. Right. I figured I'd do that part anyway since I don't like having potential leaks present in the code. In the future I think we can get rid of the Cursor singletons and cache the underlying platform cursors instead.
Anders Carlsson
Comment 7 2011-07-10 19:08:47 PDT
Note You need to log in before you can comment on or make changes to this bug.