Use manual size allocation

This commit is contained in:
Jesse Hills 2025-03-03 09:18:00 +13:00
parent 47f3ef4904
commit 47e588474c
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -42,7 +42,7 @@ static void draw_callback(pngle_t *pngle, uint32_t x, uint32_t y, uint32_t w, ui
PngDecoder::PngDecoder(OnlineImage *image) : ImageDecoder(image) {
{
pngle_t *pngle = this->allocator_.allocate(1);
pngle_t *pngle = this->allocator_.allocate(1, 43888U);
if (!pngle) {
ESP_LOGE(TAG, "Failed to allocate memory for PNGLE engine!");
return;