Changeset 51790 in webkit


Ignore:
Timestamp:
Dec 7, 2009 1:05:39 PM (14 years ago)
Author:
ap@apple.com
Message:

Reviewed by Nikolas Zimmermann.

https://bugs.webkit.org/show_bug.cgi?id=32226
Random crashes in WebSocket tests on Leopard Debug builbot

  • platform/network/SocketStreamHandleBase.cpp: (WebCore::SocketStreamHandleBase::close): Make sure the object still exists when setting m_state.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r51789 r51790  
     12009-12-07  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Reviewed by Nikolas Zimmermann.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=32226
     6        Random crashes in WebSocket tests on Leopard Debug builbot
     7
     8        * platform/network/SocketStreamHandleBase.cpp: (WebCore::SocketStreamHandleBase::close):
     9        Make sure the object still exists when setting m_state.
     10
    1112009-12-07  Shiki Okasaka  <shiki@google.com>
    212
  • trunk/WebCore/platform/network/SocketStreamHandleBase.cpp

    r47788 r51790  
    3232#include "SocketStreamHandleBase.h"
    3333
     34#include "SocketStreamHandle.h"
    3435#include "SocketStreamHandleClient.h"
    3536
     
    7879void SocketStreamHandleBase::close()
    7980{
     81    RefPtr<SocketStreamHandle> protect(static_cast<SocketStreamHandle*>(this)); // platformClose calls the client, which may make the handle get deallocated immediately.
     82
    8083    platformClose();
    8184    m_state = Closed;
Note: See TracChangeset for help on using the changeset viewer.