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

Unified Diff: ppapi/cpp/dev/buffer_dev.cc

Issue 2629543002: pp::Buffer_Dev: Clear PP_Resource upon Map() error in Init() (Closed)
Patch Set: real fix Created 3 years, 11 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: ppapi/cpp/dev/buffer_dev.cc
diff --git a/ppapi/cpp/dev/buffer_dev.cc b/ppapi/cpp/dev/buffer_dev.cc
index 5435afdceceb3cfbaa53b3cf25abd5eb30565052..cc91caef4163a55c9c6bcf21048605b07af769da 100644
--- a/ppapi/cpp/dev/buffer_dev.cc
+++ b/ppapi/cpp/dev/buffer_dev.cc
@@ -64,6 +64,8 @@ void Buffer_Dev::Init() {
if (data_)
return;
}
+
+ Clear();
data_ = NULL;
size_ = 0;
}
« 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