mirror of
https://github.com/labwc/labwc.git
synced 2026-02-08 10:06:59 -05:00
multirect: remove destroy listener before freeing
Detected by `-Db_sanitize=address,undefined` for libwayland
This commit is contained in:
parent
71136fdf65
commit
2aa9e1143b
1 changed files with 1 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ static void
|
|||
multi_rect_destroy_notify(struct wl_listener *listener, void *data)
|
||||
{
|
||||
struct multi_rect *rect = wl_container_of(listener, rect, destroy);
|
||||
wl_list_remove(&rect->destroy.link);
|
||||
free(rect);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue