diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-26 19:40:42 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-26 19:40:42 +1000 |
commit | 834805f5e260bcc77d714323d4a7f4bfd1dbfb17 (patch) | |
tree | cc79849a31a7d90630559b39e4de321e6517f54b /sway/ipc-json.c | |
parent | 0085f64ac073666aa661938f15e8c1190d69a69b (diff) |
Fix crash when disconnecting output
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.
Diffstat (limited to 'sway/ipc-json.c')
0 files changed, 0 insertions, 0 deletions