Bug 136143

Summary: Web Inspector: RetainPtr misuse, CFRunLoopSource leak
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, graouts, joepeck, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description Joseph Pecoraro 2014-08-21 19:02:34 PDT
RetainPtr<T>::operator= does a +1. It looks like here there should be an adopt where there isn't:

> Source/JavaScriptCore/inspector/remote/RemoteInspectorDebuggableConnection.mm:239:5: warning
>     m_runLoopSource = CFRunLoopSourceCreate(nullptr, 1, &runLoopSourceContext);
>     ^
Comment 1 Radar WebKit Bug Importer 2014-08-21 19:02:55 PDT
<rdar://problem/18097750>
Comment 2 Joseph Pecoraro 2014-08-21 19:03:47 PDT
Created attachment 236955 [details]
[PATCH] Proposed Fix
Comment 3 WebKit Commit Bot 2014-08-21 20:22:38 PDT
Comment on attachment 236955 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 236955

Committed r172845: <http://trac.webkit.org/changeset/172845>
Comment 4 WebKit Commit Bot 2014-08-21 20:22:40 PDT
All reviewed patches have been landed.  Closing bug.