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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_image_data.cc

Issue 8872045: Fix PluginImageData and mouselock NaCl example: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_image_data.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_image_data.cc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_image_data.cc b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_image_data.cc
index 636b8ed151a294e6bf3ff3a0b57b89ca5b4ae90c..9c2a27acff000f644d5069503d2308d7f5414947 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_image_data.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_image_data.cc
@@ -140,6 +140,10 @@ PluginImageData::PluginImageData()
addr_(NULL) {
}
+PluginImageData::~PluginImageData() {
+ Unmap();
+}
+
bool PluginImageData::InitFromBrowserResource(PP_Resource resource) {
nacl_abi_size_t desc_size = static_cast<nacl_abi_size_t>(sizeof(desc_));
int32_t success = PP_FALSE;
« no previous file with comments | « ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_image_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698