Don't dirty heap if the action deletes the button

This commit is contained in:
Brian Pugh
2019-01-02 15:08:56 -06:00
parent d3101f8e96
commit f2c4aadfe1

View File

@@ -684,8 +684,10 @@ static lv_res_t lv_btn_signal(lv_obj_t * btn, lv_signal_t sign, void * param)
res = ext->actions[LV_BTN_ACTION_CLICK](btn);
}
}
if( LV_RES_INV != res ) {
ext->long_pr_action_executed = 0;
}
}
} else if(sign == LV_SIGNAL_CLEANUP) {
#if USE_LV_ANIMATION && LV_BTN_INK_EFFECT
if(btn == ink_obj) {