[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:
parent
9a5762052a
commit
9467361423
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user