Main Menu: Fix crash with DEBUG=1 with custom apps

This commit is contained in:
Willy-JL
2024-05-29 03:11:06 +01:00
parent fe502c0f9f
commit f34dbf4fc1
2 changed files with 2 additions and 1 deletions

View File

@@ -34,6 +34,7 @@
- Storage: Fix process aliases in rename (by @Willy-JL) - Storage: Fix process aliases in rename (by @Willy-JL)
- Desktop: Show "safe to unplug the USB cable" even when locked (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) - 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) - UL: RFID: Electra fix non-initialized encoded epilogue on render (by @Leptopt1los)
- OFW: NFC: Fix changing UID (by @gornekich) - OFW: NFC: Fix changing UID (by @gornekich)
- OFW: Settings: Refactor fixes (by @Astrrra) - OFW: Settings: Refactor fixes (by @Astrrra)

View File

@@ -233,7 +233,7 @@ bool loader_menu_load_fap_meta(
} }
*icon = malloc(sizeof(Icon)); *icon = malloc(sizeof(Icon));
FURI_CONST_ASSIGN((*icon)->frame_count, 1); 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)->width, 10);
FURI_CONST_ASSIGN((*icon)->height, 10); FURI_CONST_ASSIGN((*icon)->height, 10);
FURI_CONST_ASSIGN_PTR((*icon)->frames, malloc(sizeof(const uint8_t*))); FURI_CONST_ASSIGN_PTR((*icon)->frames, malloc(sizeof(const uint8_t*)));