commit | c684560d96df39570c66b2b3e0035859bb4b25a5 | [log] [tgz] |
---|---|---|
author | Chia-I Wu <olv@google.com> | Thu Apr 07 15:01:55 2016 +0800 |
committer | Chia-I Wu <olv@google.com> | Mon Apr 11 06:35:49 2016 +0800 |
tree | ece8823eff0d8cd67781676d2c3d5ec0398f7272 | |
parent | 79632ee48a8cddf31a1ec15c0c5217b3d3608622 [diff] |
vulkan: avoid double-free in InitSharedPtr When std::shared_ptr fails to allocate its internal data, it deletes the managed object automatically. We should not call obj->common.decRef on std::bad_alloc. Bug: 28039233 Change-Id: I1fe00c16e83e426602eac96d8b86afb4fd4830e6