mirror of
https://github.com/swaywm/sway
synced 2024-11-22 16:32:16 +01:00
5312376077
The teardown of a sway_output is split in two: begin_destroy and output_destroy. The former clears some state such as NULL'ing the reference to wlr_output, while the latter frees the struct and its remaining resources. If an output is destroyed while a repaint timer is pending, future frame callbacks will no longer occur as the listener is torn down in begin_destroy, but the repaint timer is not torn down and may still fire until output_destroy is hit. As begin_destroy cleared the reference to wlr_output, this leads to a NULL-pointer dereference. Tear down the repaint timer in begin_destroy as there is no need for it. Fixes: fdc4318ac66d ("desktop/output: Clear frame_pending even output is disabled") |
||
---|---|---|
.. | ||
commands | ||
config | ||
desktop | ||
input | ||
tree | ||
commands.c | ||
config.c | ||
criteria.c | ||
decoration.c | ||
ipc-json.c | ||
ipc-server.c | ||
lock.c | ||
main.c | ||
meson.build | ||
realtime.c | ||
scene_descriptor.c | ||
server.c | ||
sway_text_node.c | ||
sway-bar.5.scd | ||
sway-input.5.scd | ||
sway-ipc.7.scd | ||
sway-output.5.scd | ||
sway.1.scd | ||
sway.5.scd | ||
swaynag.c | ||
xdg_activation_v1.c | ||
xdg_decoration.c |