mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 01:15:39 +00:00
Fix leak of ErrorData after Device::ConsumedError
The code to delete this ErrorData* was lost in the error scope refactor. Bug: chromium:1002783, chromium:1002888, dawn:153 Change-Id: Iebe13c778079501193b942ebd97a559041516c3d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/11320 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
7dda7d0f2e
commit
b11bd2dfe5
@@ -15,7 +15,6 @@
|
||||
#include "dawn_native/ErrorScope.h"
|
||||
|
||||
#include "common/Assert.h"
|
||||
#include "dawn_native/ErrorData.h"
|
||||
|
||||
namespace dawn_native {
|
||||
|
||||
@@ -50,11 +49,6 @@ namespace dawn_native {
|
||||
HandleErrorImpl(this, type, message);
|
||||
}
|
||||
|
||||
void ErrorScope::HandleError(ErrorData* error) {
|
||||
ASSERT(error != nullptr);
|
||||
HandleErrorImpl(this, error->GetType(), error->GetMessage().c_str());
|
||||
}
|
||||
|
||||
// static
|
||||
void ErrorScope::HandleErrorImpl(ErrorScope* scope, dawn::ErrorType type, const char* message) {
|
||||
ErrorScope* currentScope = scope;
|
||||
|
||||
Reference in New Issue
Block a user