| Index: chrome/renderer/webplugin_delegate_pepper.cc
|
| diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc
|
| index 082fc825a8fd87c3ffc3e25df3e3cdabbbd5e679..008523413c62560b00e88a0c8cc6bc87854f4b26 100644
|
| --- a/chrome/renderer/webplugin_delegate_pepper.cc
|
| +++ b/chrome/renderer/webplugin_delegate_pepper.cc
|
| @@ -114,8 +114,8 @@ WebPluginDelegatePepper* WebPluginDelegatePepper::Create(
|
| const FilePath& filename,
|
| const std::string& mime_type,
|
| const base::WeakPtr<RenderView>& render_view) {
|
| - scoped_refptr<NPAPI::PluginLib> plugin_lib =
|
| - NPAPI::PluginLib::CreatePluginLib(filename);
|
| + scoped_refptr<NPAPI::PluginLib> plugin_lib(
|
| + NPAPI::PluginLib::CreatePluginLib(filename));
|
| if (plugin_lib.get() == NULL)
|
| return NULL;
|
|
|
| @@ -123,8 +123,8 @@ WebPluginDelegatePepper* WebPluginDelegatePepper::Create(
|
| if (err != NPERR_NO_ERROR)
|
| return NULL;
|
|
|
| - scoped_refptr<NPAPI::PluginInstance> instance =
|
| - plugin_lib->CreateInstance(mime_type);
|
| + scoped_refptr<NPAPI::PluginInstance> instance(
|
| + plugin_lib->CreateInstance(mime_type));
|
| return new WebPluginDelegatePepper(render_view,
|
| instance.get());
|
| }
|
|
|