| Index: webkit/plugins/ppapi/message_channel.cc
|
| diff --git a/webkit/plugins/ppapi/message_channel.cc b/webkit/plugins/ppapi/message_channel.cc
|
| index 3ef05970bb42430a430dbc440639e0578a20d140..db764e562a6d02a49bcb513c77ffec7da18e83e0 100644
|
| --- a/webkit/plugins/ppapi/message_channel.cc
|
| +++ b/webkit/plugins/ppapi/message_channel.cc
|
| @@ -420,7 +420,8 @@ MessageChannel::~MessageChannel() {
|
| void MessageChannel::SetPassthroughObject(NPObject* passthrough) {
|
| // Retain the passthrough object; We need to ensure it lives as long as this
|
| // MessageChannel.
|
| - WebBindings::retainObject(passthrough);
|
| + if (passthrough)
|
| + WebBindings::retainObject(passthrough);
|
|
|
| // If we had a passthrough set already, release it. Note that we retain the
|
| // incoming passthrough object first, so that we behave correctly if anyone
|
|
|