[graphite] Fix commandqueue memory leak

Bug: skia:12466
Change-Id: Icbd4fd6098c8a50164613e630db476bf8ea41517
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/459177
Auto-Submit: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
This commit is contained in:
Jim Van Verth 2021-10-13 14:49:09 -04:00 committed by SkCQ
parent 9a5762052a
commit 9467361423

View File

@ -42,7 +42,7 @@ std::unique_ptr<GraphiteTestContext> TestContext::Make() {
skgpu::mtl::BackendContext backendContext = {};
backendContext.fDevice.retain(device.get());
backendContext.fQueue.retain([*device newCommandQueue]);
backendContext.fQueue.reset([*device newCommandQueue]);
return std::unique_ptr<GraphiteTestContext>(new TestContext(backendContext));
}