diff options
| author | Devin J. Pohly <djpohly@gmail.com> | |
|---|---|---|
| 2020-05-10 01:04:31 -0500 | ||
| committer | Devin J. Pohly <djpohly@gmail.com> | |
| 2020-05-10 01:04:31 -0500 | ||
| commit | 67299a18a5b3aecf4febf2818fdf8140a561df5d (patch) | |
| tree | 43989e1ba929e743b23678beb4fe7cedfa477de7 | |
| parent | abab2ed92a366d5711f96fef6a9196674967e71d (diff) | |
| download | dwl-67299a18a5b3aecf4febf2818fdf8140a561df5d.tar.gz dwl-67299a18a5b3aecf4febf2818fdf8140a561df5d.tar.bz2 dwl-67299a18a5b3aecf4febf2818fdf8140a561df5d.zip | |
make sure freed listeners are removed from list
@@ -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); } |