Index: ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_graphics_3d_rpc_server.cc |
=================================================================== |
--- ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_graphics_3d_rpc_server.cc (revision 125068) |
+++ ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_graphics_3d_rpc_server.cc (working copy) |
@@ -387,7 +387,9 @@ |
GetTransferBuffer(resource_id, id, &native_handle, &native_size); |
desc_wrapper.reset(factory.ImportShmHandle( |
(NaClHandle)native_handle, native_size)); |
- *shm_desc = desc_wrapper->desc(); |
+ // todo(nfullagar): Dup the handle instead of leak caused by bumping the ref. |
+ // bug: https://chromiumcodereview.appspot.com/9610008 |
+ *shm_desc = NaClDescRef(desc_wrapper->desc()); |
*shm_size = native_size; |
rpc->result = NACL_SRPC_RESULT_OK; |