fix(color): prevent crash, show error if Lua script uses a deleted LVGL object (#6229)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user