| Index: src/gpu/vk/GrVkStencilAttachment.cpp
|
| diff --git a/src/gpu/vk/GrVkStencilAttachment.cpp b/src/gpu/vk/GrVkStencilAttachment.cpp
|
| index 5976811be4618799a2171413c57bc14f7a998279..0343504afc1342fbb666b80bef0000904a0b1214 100644
|
| --- a/src/gpu/vk/GrVkStencilAttachment.cpp
|
| +++ b/src/gpu/vk/GrVkStencilAttachment.cpp
|
| @@ -53,8 +53,7 @@ GrVkStencilAttachment* GrVkStencilAttachment::Create(GrVkGpu* gpu,
|
| format.fInternalFormat,
|
| GrVkImageView::kStencil_Type, 1);
|
| if (!imageView) {
|
| - VK_CALL(gpu, DestroyImage(gpu->device(), info.fImage, nullptr));
|
| - VK_CALL(gpu, FreeMemory(gpu->device(), info.fAlloc, nullptr));
|
| + GrVkImage::DestroyImageInfo(gpu, &info);
|
| return nullptr;
|
| }
|
|
|
|
|