mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
src/menu: prevent delayed pipe menu response on item destroy (#2094)
Without this patch we would happily access `pipe_ctx->item` members even if the item had been destroyed in the meantime.
This commit is contained in:
parent
c4b8b53198
commit
5ae9eed1ac
2 changed files with 41 additions and 18 deletions
|
|
@ -39,6 +39,7 @@ struct menuitem {
|
|||
struct wlr_scene_tree *tree;
|
||||
struct menu_scene normal;
|
||||
struct menu_scene selected;
|
||||
struct menu_pipe_context *pipe_ctx;
|
||||
struct wl_list link; /* menu.menuitems */
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue