~ruther/dwl

67299a18a5b3aecf4febf2818fdf8140a561df5d — Devin J. Pohly 4 years ago abab2ed
make sure freed listeners are removed from list
1 files changed, 3 insertions(+), 0 deletions(-)

M dwl.c
M dwl.c => dwl.c +3 -0
@@ 501,6 501,9 @@ destroynotify(struct wl_listener *listener, void *data)
{
	/* Called when the surface is destroyed and should never be shown again. */
	Client *c = wl_container_of(listener, c, destroy);
	wl_list_remove(&c->map.link);
	wl_list_remove(&c->unmap.link);
	wl_list_remove(&c->destroy.link);
	free(c);
}


Do not follow this link