mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-27 09:10:54 +00:00
告警清理
Signed-off-by: limingkang <limingkang1@huawei.com> Change-Id: Ie3c0e3b7be1241ee9cbd270db85cbd1ab6fed2c2
This commit is contained in:
parent
df59c10d5b
commit
dbebef160d
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user