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

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

Issue 9875027: Close shm in image data destructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/native_client/src/shared/ppapi_proxy/plugin_ppb_image_data.cc
===================================================================
--- ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_image_data.cc (revision 129445)
+++ ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_image_data.cc (working copy)
@@ -143,6 +143,10 @@
PluginImageData::~PluginImageData() {
Unmap();
+ if (shm_fd_ != -1) {
+ close(shm_fd_);
+ shm_fd_ = -1;
+ }
}
bool PluginImageData::InitFromBrowserResource(PP_Resource resource) {
« 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