summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/driver.cpp
diff options
context:
space:
mode:
author Chia-I Wu <olv@google.com> 2016-04-07 15:01:55 +0800
committer Chia-I Wu <olv@google.com> 2016-04-11 06:35:49 +0800
commitc684560d96df39570c66b2b3e0035859bb4b25a5 (patch)
treeece8823eff0d8cd67781676d2c3d5ec0398f7272 /vulkan/libvulkan/driver.cpp
parent79632ee48a8cddf31a1ec15c0c5217b3d3608622 (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