告警清理

Signed-off-by: limingkang <limingkang1@huawei.com>
Change-Id: Ie3c0e3b7be1241ee9cbd270db85cbd1ab6fed2c2
This commit is contained in:
limingkang 2024-11-07 20:51:53 +08:00
parent df59c10d5b
commit dbebef160d
2 changed files with 5 additions and 2 deletions

View File

@ -77,8 +77,7 @@ WebGLFramebuffer::~WebGLFramebuffer()
auto it = attachments_.begin();
while (it != attachments_.end()) {
delete it->second;
attachments_.erase(it);
it = attachments_.begin();
it = attachments_.erase(it);
}
}

View File

@ -290,6 +290,10 @@ int CacheData::DeSerialize(uint8_t const *buffer, const size_t size)
LOGD("abandon, not enough room for cache header");
}
if (buffer == nullptr) {
LOGD("abandon, buffer is null");
return -EINVAL;
}
const Header *header = reinterpret_cast<const Header *>(buffer);
size_t numShaders = header->numShaders_;
size_t byteOffset = Align4(sizeof(Header));