[Webkit-unassigned] [Bug 37584] LEAK: in ThreadableWebSocketChannel::create()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 14 11:15:00 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=37584
David Levin <levin at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #53343|review? |review-
Flag| |
--- Comment #3 from David Levin <levin at chromium.org> 2010-04-14 11:15:00 PST ---
(From update of attachment 53343)
> diff --git a/WebCore/websockets/WorkerThreadableWebSocketChannel.cpp b/WebCore/websockets/WorkerThreadableWebSocketChannel.cpp
> index 3dda104..d99efaa 100644
> --- a/WebCore/websockets/WorkerThreadableWebSocketChannel.cpp
> +++ b/WebCore/websockets/WorkerThreadableWebSocketChannel.cpp
> @@ -52,7 +52,7 @@ namespace WebCore {
> WorkerThreadableWebSocketChannel::WorkerThreadableWebSocketChannel(WorkerContext* context, WebSocketChannelClient* client, const String& taskMode, const KURL& url, const String& protocol)
> : m_workerContext(context)
> , m_workerClientWrapper(ThreadableWebSocketChannelClientWrapper::create(client))
> - , m_bridge(new Bridge(m_workerClientWrapper, m_workerContext, taskMode, url, protocol))
> + , m_bridge(adoptRef(new Bridge(m_workerClientWrapper, m_workerContext, taskMode, url, protocol)))
The standard way to do this is to make the constructor private and make a
static create method which does the adoptRef and returns a PassRefPtr.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list