sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit a82aa2a20d865dd65f2ea9b9efb15d72ab7638a0
parent 6271abd644da15070d29d2d06bc527f89a799375
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon,  9 Oct 2017 12:03:32 -0400

Fix use-after free introduced by cbe7364

Diffstat:
Msway/container.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sway/container.c b/sway/container.c @@ -516,10 +516,10 @@ swayc_t *destroy_view(swayc_t *view) { return NULL; } sway_log(L_DEBUG, "Destroying view '%p'", view); + swayc_t *parent = view->parent; free_swayc(view); // Destroy empty containers - swayc_t *parent = view->parent; if (parent && parent->type == C_CONTAINER) { return destroy_container(parent); }