Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4332)

Unified Diff: chrome/renderer/webplugin_delegate_pepper.cc

Issue 2802035: Coverity: Fix null dereference in WebPluginDelegatePepper::Device3DInitializeContext error case. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webplugin_delegate_pepper.cc
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc
index 05e57620ef324904cece1248f2cee564060f1f05..94753f62d5ad7de21c6651e0451396c39caab32a 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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698