mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-23 23:20:32 +00:00
!15817 RSProfiler: Fix for pixelmap [Denis Pavlov]
Merge pull request !15817 from pavlovdenis/pixelmap_gather_fix
This commit is contained in:
commit
2c0cbc7fce
@ -152,6 +152,11 @@ public:
|
||||
if ((size <= 0) || (size > Rosen::Image::maxSize)) {
|
||||
return false;
|
||||
}
|
||||
if (!image) {
|
||||
return false;
|
||||
}
|
||||
|
||||
allocType = AllocatorType::HEAP_ALLOC;
|
||||
|
||||
base = new (std::nothrow) uint8_t[size];
|
||||
if (!base) {
|
||||
|
Loading…
Reference in New Issue
Block a user