-
yutak@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=83345 Reviewed by David Levin. A speculative fix of memory leaks caused by worker-reload.html. No new tests, as this change imposes no functional change. * Modules/websockets/WorkerThreadableWebSocketChannel.cpp: (WebCore::WorkerThreadableWebSocketChannel::mainThreadDestroy): Receive the peer as PassOwnPtr<> so the destructor of the task object can delete the peer even if the task didn't run before main thread's cleanup period. (WebCore::WorkerThreadableWebSocketChannel::Bridge::disconnect): * Modules/websockets/WorkerThreadableWebSocketChannel.h: (WorkerThreadableWebSocketChannel): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113414 268f45cc-cd09-0410-ab3c-d52691b4dbfc
yutak@chromium.org authoredhttps://bugs.webkit.org/show_bug.cgi?id=83345 Reviewed by David Levin. A speculative fix of memory leaks caused by worker-reload.html. No new tests, as this change imposes no functional change. * Modules/websockets/WorkerThreadableWebSocketChannel.cpp: (WebCore::WorkerThreadableWebSocketChannel::mainThreadDestroy): Receive the peer as PassOwnPtr<> so the destructor of the task object can delete the peer even if the task didn't run before main thread's cleanup period. (WebCore::WorkerThreadableWebSocketChannel::Bridge::disconnect): * Modules/websockets/WorkerThreadableWebSocketChannel.h: (WorkerThreadableWebSocketChannel): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113414 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Loading