mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-26 15:34:18 +02:00
Fix use after free
This commit is contained in:
parent
e4b79c42ce
commit
f9cfb77b81
1 changed files with 1 additions and 6 deletions
|
|
@ -100,12 +100,7 @@ void
|
|||
workspace_free_tiles(struct cg_workspace *workspace) {
|
||||
workspace->focused_tile->prev->next = NULL;
|
||||
while(workspace->focused_tile != NULL) {
|
||||
if(workspace->output->server->running &&
|
||||
workspace->output->server->seat->cursor_tile ==
|
||||
workspace->focused_tile) {
|
||||
workspace->output->server->seat->cursor_tile = NULL;
|
||||
}
|
||||
if(workspace->output->server->running &&
|
||||
if(!workspace->output->server->running ||
|
||||
workspace->focused_tile == workspace->server->seat->cursor_tile) {
|
||||
workspace->server->seat->cursor_tile = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue