| Index: webkit/plugins/npapi/plugin_stream_url.cc
|
| diff --git a/webkit/plugins/npapi/plugin_stream_url.cc b/webkit/plugins/npapi/plugin_stream_url.cc
|
| index b7efcdfbb982817ff034a3b34c8c68f8b12e1bd2..2286d55108e0c86078e4ee9c9395d6a0652d52bd 100644
|
| --- a/webkit/plugins/npapi/plugin_stream_url.cc
|
| +++ b/webkit/plugins/npapi/plugin_stream_url.cc
|
| @@ -36,7 +36,7 @@ bool PluginStreamUrl::Close(NPReason reason) {
|
| scoped_refptr<PluginStream> protect(this);
|
| CancelRequest();
|
| bool result = PluginStream::Close(reason);
|
| - instance()->RemoveStream(this);
|
| + instance()->RemoveStream(protect);
|
| return result;
|
| }
|
|
|
| @@ -75,7 +75,7 @@ void PluginStreamUrl::DidReceiveResponse(const std::string& mime_type,
|
| request_is_seekable);
|
| if (!opened) {
|
| CancelRequest();
|
| - instance()->RemoveStream(this);
|
| + instance()->RemoveStream(protect);
|
| } else {
|
| if (id_ > 0)
|
| instance()->webplugin()->SetDeferResourceLoading(id_, false);
|
|
|