reset pngle in constructor too

This commit is contained in:
Jesse Hills 2025-03-03 08:55:39 +13:00
parent 2d76b153bf
commit 47f3ef4904
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -47,6 +47,7 @@ PngDecoder::PngDecoder(OnlineImage *image) : ImageDecoder(image) {
ESP_LOGE(TAG, "Failed to allocate memory for PNGLE engine!");
return;
}
pngle_reset(pngle);
this->pngle_ = pngle;
}
}