moving where we NULL the *leds pointer