Merge pull request #693 from joltwallet/dirty_heap

Don't dirty heap if the lv_btn action deletes the button obj
This commit is contained in:
Gabor Kiss-Vamosi
2019-01-03 10:07:34 +01:00
committed by GitHub

View File

@@ -684,7 +684,9 @@ 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);
}
}
ext->long_pr_action_executed = 0;
if(res != LV_RES_INV) {
ext->long_pr_action_executed = 0;
}
}
} else if(sign == LV_SIGNAL_CLEANUP) {
#if USE_LV_ANIMATION && LV_BTN_INK_EFFECT