Skip to content

Commit 2158e0c

Browse files
committed
Update PAX to 2.0.6; fix missing free on icon loading fail
1 parent c03bf57 commit 2158e0c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

main/app_metadata_parser.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ app_t* create_app(const char* path, const char* slug, bool sdcard) {
205205
app->icon = calloc(1, sizeof(pax_buf_t));
206206
if (app->icon != NULL) {
207207
if (!pax_decode_png_fd(app->icon, icon_fd, PAX_BUF_32_8888ARGB, 0)) {
208+
free(app->icon);
209+
app->icon = NULL;
208210
ESP_LOGE(TAG, "Failed to decode icon for app %s", slug);
209211
}
210212
} else {

main/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dependencies:
44
badgeteam/badge-bsp:
55
version: ">=0.7.1"
66
robotman2412/pax-gfx:
7-
version: ">=2.0.4"
7+
version: ">=2.0.6"
88
robotman2412/pax-codecs:
99
version: ">=1.0.1"
1010
badgeteam/appfs:

0 commit comments

Comments
 (0)