Object Style destruction sequence

Description

Based on the follow sequence of events:

lv_style_t *p_style = new lv_style_t;
lv_style_init(p_style);
lv_style_set_bg_opa(p_style, LV_OPA_TRANSP);

lv_obj_t *p_obj = lv_obj_create(p_parent);
lv_obj_add_style(p_obj , &p_style , LV_PART_MAIN | LV_STATE_DEFAULT);

[...]  Several lvgl loop runs

lv_style_reset(p_style);
delete p_style;
lv_obj_delete(p_obj);

Is there a potential for invalid memory access if, within the same context, I first delete a style and its resources, followed by the deletion of the object that used the style? In other words, will the deletion of the object touch the style pointer provided via lv_obj_add_style ?

What LVGL version are you using?

v8.3.11