Changeset 57646 in webkit


Ignore:
Timestamp:
Apr 15, 2010 7:52:10 AM (14 years ago)
Author:
hamaji@chromium.org
Message:

2010-04-15 Shinichiro Hamaji <hamaji@chromium.org>

Reviewed by David Levin.

LEAK: in ThreadableWebSocketChannel::create()
https://bugs.webkit.org/show_bug.cgi?id=37584

No new tests because this change just fixes a leak.

  • websockets/WorkerThreadableWebSocketChannel.cpp: (WebCore::WorkerThreadableWebSocketChannel::WorkerThreadableWebSocketChannel):
  • websockets/WorkerThreadableWebSocketChannel.h: (WebCore::WorkerThreadableWebSocketChannel::Bridge::create):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57639 r57646  
     12010-04-15  Shinichiro Hamaji  <hamaji@chromium.org>
     2
     3        Reviewed by David Levin.
     4
     5        LEAK: in ThreadableWebSocketChannel::create()
     6        https://bugs.webkit.org/show_bug.cgi?id=37584
     7
     8        No new tests because this change just fixes a leak.
     9
     10        * websockets/WorkerThreadableWebSocketChannel.cpp:
     11        (WebCore::WorkerThreadableWebSocketChannel::WorkerThreadableWebSocketChannel):
     12        * websockets/WorkerThreadableWebSocketChannel.h:
     13        (WebCore::WorkerThreadableWebSocketChannel::Bridge::create):
     14
    1152010-04-15  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    216
  • trunk/WebCore/websockets/WorkerThreadableWebSocketChannel.cpp

    r54927 r57646  
    5353    : m_workerContext(context)
    5454    , m_workerClientWrapper(ThreadableWebSocketChannelClientWrapper::create(client))
    55     , m_bridge(new Bridge(m_workerClientWrapper, m_workerContext, taskMode, url, protocol))
     55    , m_bridge(Bridge::create(m_workerClientWrapper, m_workerContext, taskMode, url, protocol))
    5656{
    5757}
  • trunk/WebCore/websockets/WorkerThreadableWebSocketChannel.h

    r54927 r57646  
    106106    class Bridge : public RefCounted<Bridge> {
    107107    public:
    108         Bridge(PassRefPtr<ThreadableWebSocketChannelClientWrapper>, PassRefPtr<WorkerContext>, const String& taskMode, const KURL&, const String& protocol);
     108        static PassRefPtr<Bridge> create(PassRefPtr<ThreadableWebSocketChannelClientWrapper> workerClientWrapper, PassRefPtr<WorkerContext> workerContext, const String& taskMode, const KURL& url, const String& protocol)
     109        {
     110            return adoptRef(new Bridge(workerClientWrapper, workerContext, taskMode, url, protocol));
     111        }
    109112        ~Bridge();
    110113        void connect();
     
    118121
    119122    private:
     123        Bridge(PassRefPtr<ThreadableWebSocketChannelClientWrapper>, PassRefPtr<WorkerContext>, const String& taskMode, const KURL&, const String& protocol);
     124
    120125        static void setWebSocketChannel(ScriptExecutionContext*, Bridge* thisPtr, Peer*, RefPtr<ThreadableWebSocketChannelClientWrapper>);
    121126
Note: See TracChangeset for help on using the changeset viewer.