mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-07 08:36:02 -10:00
led_driver_free() leaves no driver behind, so nothing can reach a freed one before the next led_driver_init(). The init log names the driver actually chosen, by its ident, and stays quiet for the null driver, an unknown name included. A compile-time check keeps MAX_LEDS within the output store's slots. samples/frontend/led_driver checks that a freed driver is not called and what the init logs.