mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
multirect: remove destroy listener before freeing
Detected by `-Db_sanitize=address,undefined` for libwayland
This commit is contained in:
parent
92db067e86
commit
750d37b16c
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