| Index: content/plugin/webplugin_delegate_stub.cc
|
| diff --git a/content/plugin/webplugin_delegate_stub.cc b/content/plugin/webplugin_delegate_stub.cc
|
| index 2b76d8df97da68239ddbd56e280380a55b24be67..023861dbba3de25b07dd58754ad9b1a96cc021bd 100644
|
| --- a/content/plugin/webplugin_delegate_stub.cc
|
| +++ b/content/plugin/webplugin_delegate_stub.cc
|
| @@ -38,7 +38,7 @@ static void DestroyWebPluginAndDelegate(
|
| WebPlugin* webplugin) {
|
| // The plugin may not expect us to try to release the scriptable object
|
| // after calling NPP_Destroy on the instance, so delete the stub now.
|
| - if (scriptable_object)
|
| + if (scriptable_object.get())
|
| scriptable_object->DeleteSoon();
|
| // WebPlugin must outlive WebPluginDelegate.
|
| if (delegate)
|
|
|