mirror of
https://github.com/esphome/esphome.git
synced 2025-07-27 05:36:38 +00:00
reset pngle in constructor too
This commit is contained in:
parent
2d76b153bf
commit
47f3ef4904
@ -47,6 +47,7 @@ PngDecoder::PngDecoder(OnlineImage *image) : ImageDecoder(image) {
|
|||||||
ESP_LOGE(TAG, "Failed to allocate memory for PNGLE engine!");
|
ESP_LOGE(TAG, "Failed to allocate memory for PNGLE engine!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
pngle_reset(pngle);
|
||||||
this->pngle_ = pngle;
|
this->pngle_ = pngle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user