fix(color): prevent crash, show error if Lua script uses a deleted LVGL object (#6229)

This commit is contained in:
philmoz
2025-05-12 09:10:37 +10:00
committed by GitHub
parent 04a7e340d7
commit d22628d1d6
5 changed files with 92 additions and 66 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ class LvglWidgetObjectBase
virtual Window *getWindow() const = 0;
static LvglWidgetObjectBase *checkLvgl(lua_State *L, int index);
static LvglWidgetObjectBase *checkLvgl(lua_State *L, int index, bool required = false);
void clear();