| Index: webkit/plugins/npapi/webplugin_delegate_impl_win.cc
|
| diff --git a/webkit/plugins/npapi/webplugin_delegate_impl_win.cc b/webkit/plugins/npapi/webplugin_delegate_impl_win.cc
|
| index 835e49e8546ea1665f69787a6dc7ba0a9c96d4ca..88b0817ec2a25711dc0ee099d94745181ed02fb2 100644
|
| --- a/webkit/plugins/npapi/webplugin_delegate_impl_win.cc
|
| +++ b/webkit/plugins/npapi/webplugin_delegate_impl_win.cc
|
| @@ -599,8 +599,8 @@ bool WebPluginDelegateImpl::WindowedCreatePlugin() {
|
| // property. Use an atom so that other processes can access the name of
|
| // the plugin that this window is hosting
|
| if (instance_ != NULL) {
|
| - PluginLib* plugin_lib = instance()->plugin_lib();
|
| - if (plugin_lib != NULL) {
|
| + scoped_refptr<PluginLib> plugin_lib = instance()->plugin_lib();
|
| + if (plugin_lib) {
|
| std::wstring plugin_name = plugin_lib->plugin_info().name;
|
| if (!plugin_name.empty()) {
|
| ATOM plugin_name_atom = GlobalAddAtomW(plugin_name.c_str());
|
|
|