Index: webkit/plugins/npapi/webplugin_delegate_impl.cc |
diff --git a/webkit/plugins/npapi/webplugin_delegate_impl.cc b/webkit/plugins/npapi/webplugin_delegate_impl.cc |
index 831de3da2806558b864bf10a16cbc910aa26f32a..8cdf33ae6fb32b54e40b23718167ac1299e60d8f 100644 |
--- a/webkit/plugins/npapi/webplugin_delegate_impl.cc |
+++ b/webkit/plugins/npapi/webplugin_delegate_impl.cc |
@@ -102,7 +102,7 @@ bool WebPluginDelegateImpl::Initialize( |
} |
void WebPluginDelegateImpl::DestroyInstance() { |
- if (instance_ && (instance_->npp()->ndata != NULL)) { |
+ if (instance_.get() && (instance_->npp()->ndata != NULL)) { |
// Shutdown all streams before destroying so that |
// no streams are left "in progress". Need to do |
// this before calling set_web_plugin(NULL) because the |