We were freeing the sway_output immediately upon disconnect which left a dangling pointer in the output's container. It then tried to use the pointer when the container is freed. We don't need to store the sway_output in an output's container which is destroying, so the fix is to set the pointer to NULL and remove the use in container_free. Also added an arrange when the output is disconnected for good measure. |
||
|---|---|---|
| .. | ||
| desktop.c | ||
| layer_shell.c | ||
| output.c | ||
| transaction.c | ||
| xdg_shell.c | ||
| xdg_shell_v6.c | ||
| xwayland.c | ||