| Index: content/renderer/plugin_channel_host.cc
|
| diff --git a/content/renderer/plugin_channel_host.cc b/content/renderer/plugin_channel_host.cc
|
| index d2fd0ae9a2547800b2fb08a87c3ccbd102da371e..c350880054f578a8a21775148f5cc1e6c89e2609 100644
|
| --- a/content/renderer/plugin_channel_host.cc
|
| +++ b/content/renderer/plugin_channel_host.cc
|
| @@ -138,8 +138,10 @@ bool PluginChannelHost::Init(base::MessageLoopProxy* ipc_message_loop,
|
| base::WaitableEvent* shutdown_event) {
|
| bool ret =
|
| NPChannelBase::Init(ipc_message_loop, create_pipe_now, shutdown_event);
|
| - is_listening_filter_ = new IsListeningFilter;
|
| - channel_->AddFilter(is_listening_filter_);
|
| + if (ret) {
|
| + is_listening_filter_ = new IsListeningFilter;
|
| + channel_->AddFilter(is_listening_filter_);
|
| + }
|
| return ret;
|
| }
|
|
|
|
|