diff options
Diffstat (limited to 'webkit/glue/plugins/webplugin_delegate_impl.cc')
-rw-r--r-- | webkit/glue/plugins/webplugin_delegate_impl.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webkit/glue/plugins/webplugin_delegate_impl.cc b/webkit/glue/plugins/webplugin_delegate_impl.cc index 6907c6f..e3e4f9d 100644 --- a/webkit/glue/plugins/webplugin_delegate_impl.cc +++ b/webkit/glue/plugins/webplugin_delegate_impl.cc @@ -86,9 +86,9 @@ bool WebPluginDelegateImpl::Initialize( argc++; } - bool start_result = instance_->Start( + creation_succeeded_ = instance_->Start( url, argn.get(), argv.get(), argc, load_manually); - if (!start_result) + if (!creation_succeeded_) return false; windowless_ = instance_->windowless(); @@ -120,7 +120,8 @@ void WebPluginDelegateImpl::DestroyInstance() { instance_->CloseStreams(); window_.window = NULL; - if (!(quirks_ & PLUGIN_QUIRK_DONT_SET_NULL_WINDOW_HANDLE_ON_DESTROY)) { + if (creation_succeeded_ && + !(quirks_ & PLUGIN_QUIRK_DONT_SET_NULL_WINDOW_HANDLE_ON_DESTROY)) { instance_->NPP_SetWindow(&window_); } |