| 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 297918d2915793a573518bd5358a12e45b3d2bfb..2bff66d7eec71113258cc00a6d3c85416e8d0d3c 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
|
| @@ -141,14 +141,6 @@ PluginImageData::PluginImageData()
|
| memset(&desc_, 0, sizeof(desc_));
|
| }
|
|
|
| -PluginImageData::~PluginImageData() {
|
| - Unmap();
|
| - if (shm_fd_ != -1) {
|
| - close(shm_fd_);
|
| - shm_fd_ = -1;
|
| - }
|
| -}
|
| -
|
| 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;
|
| @@ -185,4 +177,12 @@ void PluginImageData::Unmap() {
|
| }
|
| }
|
|
|
| +PluginImageData::~PluginImageData() {
|
| + Unmap();
|
| + if (shm_fd_ != -1) {
|
| + close(shm_fd_);
|
| + shm_fd_ = -1;
|
| + }
|
| +}
|
| +
|
| } // namespace ppapi_proxy
|
|
|