From 35f39af0f1ff12d950b4175e1d9743724a321f10 Mon Sep 17 00:00:00 2001 From: "mattm@chromium.org" Date: Thu, 15 Jul 2010 20:18:46 +0000 Subject: 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 --- chrome/renderer/webplugin_delegate_pepper.cc | 6 +++--- 1 file 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(); -- cgit v1.1