Index: webkit/tools/test_shell/simple_socket_stream_bridge.cc |
diff --git a/webkit/tools/test_shell/simple_socket_stream_bridge.cc b/webkit/tools/test_shell/simple_socket_stream_bridge.cc |
index 0d52ea2d4004bc9baa194e781517e95f576a07ed..d5d1fdb91ab685f19bf68fb827ec74340466f6d6 100644 |
--- a/webkit/tools/test_shell/simple_socket_stream_bridge.cc |
+++ b/webkit/tools/test_shell/simple_socket_stream_bridge.cc |
@@ -223,14 +223,13 @@ void WebSocketStreamHandleBridgeImpl::DoOnClose() { |
void SimpleSocketStreamBridge::InitializeOnIOThread( |
net::URLRequestContext* request_context) { |
g_io_thread = MessageLoop::current(); |
- if ((g_request_context = request_context)) |
- g_request_context->AddRef(); |
+ g_request_context = request_context; |
} |
void SimpleSocketStreamBridge::Cleanup() { |
g_io_thread = NULL; |
if (g_request_context) |
- g_request_context->Release(); |
+ delete g_request_context; |
g_request_context = NULL; |
} |