diff options
author | 2016-04-07 15:01:55 +0800 | |
---|---|---|
committer | 2016-04-11 06:35:49 +0800 | |
commit | c684560d96df39570c66b2b3e0035859bb4b25a5 (patch) | |
tree | ece8823eff0d8cd67781676d2c3d5ec0398f7272 /vulkan/libvulkan/driver.cpp | |
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
Diffstat (limited to 'vulkan/libvulkan/driver.cpp')
0 files changed, 0 insertions, 0 deletions