diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 20:18:46 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 20:18:46 +0000 |
commit | 35f39af0f1ff12d950b4175e1d9743724a321f10 (patch) | |
tree | fcad3c53622652f3cf75f69f021c80dee09a0b51 | |
parent | e07c417250edebcbc4aeeab65aa496657e682416 (diff) | |
download | chromium_src-35f39af0f1ff12d950b4175e1d9743724a321f10.zip chromium_src-35f39af0f1ff12d950b4175e1d9743724a321f10.tar.gz chromium_src-35f39af0f1ff12d950b4175e1d9743724a321f10.tar.bz2 |
Coverity: Fix null dereference in WebPluginDelegatePepper::Device3DInitializeContext error case.
CID=8366
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2802035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52519 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/renderer/webplugin_delegate_pepper.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc index 9b55799..2565eb0 100644 --- a/chrome/renderer/webplugin_delegate_pepper.cc +++ b/chrome/renderer/webplugin_delegate_pepper.cc @@ -719,10 +719,10 @@ NPError WebPluginDelegatePepper::Device3DInitializeContext( return NPERR_NO_ERROR; } - } - nested_delegate_->DestroyCommandBuffer(command_buffer_); - command_buffer_ = NULL; + nested_delegate_->DestroyCommandBuffer(command_buffer_); + command_buffer_ = NULL; + } } nested_delegate_->PluginDestroyed(); |