Index: src/gpu/SkGpuDevice.cpp |
=================================================================== |
--- src/gpu/SkGpuDevice.cpp (revision 14586) |
+++ src/gpu/SkGpuDevice.cpp (working copy) |
@@ -1913,7 +1913,7 @@ |
void SkGpuDevice::EXPERIMENTAL_optimize(SkPicture* picture) { |
SkPicture::AccelData::Key key = GPUAccelData::ComputeAccelDataKey(); |
- GPUAccelData* data = SkNEW_ARGS(GPUAccelData, (key)); |
+ SkAutoTUnref<GPUAccelData> data(SkNEW_ARGS(GPUAccelData, (key))); |
picture->EXPERIMENTAL_addAccelData(data); |