mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-12 22:56:09 +00:00
Don't leak buffers if MapAtCreation fails.
This required changing DeviceBase::CreateBufferImpl to return ResultOrError<Ref<BufferBase>> Bug: chromium:1103154 Change-Id: I1a5811d293333b6ef29c988a08f2f1f84ac65702 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/24500 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
519edd5890
commit
8a9919980f
@@ -75,4 +75,4 @@ void RefCounted::Release() {
|
||||
|
||||
void RefCounted::DeleteThis() {
|
||||
delete this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user