From f34dbf4fc1032b45af931abbea1ae774e63e5768 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Wed, 29 May 2024 03:11:06 +0100 Subject: [PATCH] Main Menu: Fix crash with DEBUG=1 with custom apps --- ChangeLog.md | 1 + applications/services/loader/loader.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index 53ac1b06f..8c33c4b56 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -34,6 +34,7 @@ - Storage: Fix process aliases in rename (by @Willy-JL) - Desktop: Show "safe to unplug the USB cable" even when locked (by @Willy-JL) - GUI: Some text and UI fixes (by @Willy-JL) +- Main Menu: Fix crash with DEBUG=1 with custom apps (by @Willy-JL) - UL: RFID: Electra fix non-initialized encoded epilogue on render (by @Leptopt1los) - OFW: NFC: Fix changing UID (by @gornekich) - OFW: Settings: Refactor fixes (by @Astrrra) diff --git a/applications/services/loader/loader.c b/applications/services/loader/loader.c index 6728a5c26..ed1e587a5 100644 --- a/applications/services/loader/loader.c +++ b/applications/services/loader/loader.c @@ -233,7 +233,7 @@ bool loader_menu_load_fap_meta( } *icon = malloc(sizeof(Icon)); FURI_CONST_ASSIGN((*icon)->frame_count, 1); - FURI_CONST_ASSIGN((*icon)->frame_rate, 0); + FURI_CONST_ASSIGN((*icon)->frame_rate, 1); FURI_CONST_ASSIGN((*icon)->width, 10); FURI_CONST_ASSIGN((*icon)->height, 10); FURI_CONST_ASSIGN_PTR((*icon)->frames, malloc(sizeof(const uint8_t*)));