From d691e72b4025fa480bf1660a217d1ac03d0726dd Mon Sep 17 00:00:00 2001 From: Brian Pugh Date: Mon, 8 Apr 2019 21:04:17 -0700 Subject: [PATCH] lv_indev: check object delete after sending LV_EVENT_SHORT_CLICKED on group button release --- src/lv_core/lv_indev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lv_core/lv_indev.c b/src/lv_core/lv_indev.c index 459926114..bd8425092 100644 --- a/src/lv_core/lv_indev.c +++ b/src/lv_core/lv_indev.c @@ -495,6 +495,7 @@ static void indev_keypad_proc(lv_indev_t * i, lv_indev_data_t * data) if(i->proc.long_pr_sent == 0) { lv_event_send(focused, LV_EVENT_SHORT_CLICKED, NULL); + if(i->proc.reset_query) return; /*The object might be deleted*/ } lv_event_send(focused, LV_EVENT_CLICKED, NULL);