commit | 20c825ae6066f39d9d0cdec2b1c5a42db8cad36b | [log] [tgz] |
---|---|---|
author | Peiyong Lin <lpy@google.com> | Fri Feb 15 14:00:53 2019 -0800 |
committer | Peiyong Lin <lpy@google.com> | Fri Feb 15 14:07:46 2019 -0800 |
tree | 2d3f2ffda23019f258c912ab9cfcd7d2b1612500 | |
parent | b2069ebab1de906ed02383dcd6467f3eb184b53e [diff] |
Fix createLut in ColorSpace. Previously createLut returns unique_ptr<float3>, which calls delete when it's destroyed. However, the actual allocation happens using new float3[size * size * size], which should cal delete [] when it's destroyed. This patch changes the type to float3[] such that delete [] is called when it's destroyed. BUG: 112717608 Test: N/A Change-Id: Ida0671e33c0659c31d599eacc12fffbe35923876