| Index: content/renderer/webplugin_delegate_proxy.cc
|
| diff --git a/content/renderer/webplugin_delegate_proxy.cc b/content/renderer/webplugin_delegate_proxy.cc
|
| index caa182d7350696b14d70a0aabf94cec59a745f9c..51bf98784d58bb6c5f5aef0f2b7bc5ac2a988e2b 100644
|
| --- a/content/renderer/webplugin_delegate_proxy.cc
|
| +++ b/content/renderer/webplugin_delegate_proxy.cc
|
| @@ -247,7 +247,7 @@ void WebPluginDelegateProxy::PluginDestroyed() {
|
| if (window_)
|
| WillDestroyWindow();
|
|
|
| - if (render_view_)
|
| + if (render_view_.get())
|
| render_view_->UnregisterPluginDelegate(this);
|
|
|
| if (channel_host_.get()) {
|
| @@ -268,7 +268,7 @@ void WebPluginDelegateProxy::PluginDestroyed() {
|
| channel_host_ = NULL;
|
| }
|
|
|
| - if (window_script_object_) {
|
| + if (window_script_object_.get()) {
|
| // Release the window script object, if the plugin didn't already.
|
| // If we don't do this then it will linger until the last plugin instance is
|
| // destroyed. In the meantime, though, the frame that it refers to may have
|
|
|