mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
Fixed a use after free in rio.
Screen was being queried from within a client after it had been free'd.
This commit is contained in:
parent
45124b23d2
commit
0ebf279d89
1 changed files with 2 additions and 1 deletions
|
@ -116,9 +116,10 @@ manage(Client *c, int mapped)
|
|||
}
|
||||
|
||||
if(c->is9term && !(fixsize ? drag(c, Button3) : sweep(c, Button3))){
|
||||
ScreenInfo *screen = c->screen;
|
||||
XKillClient(dpy, c->window);
|
||||
rmclient(c);
|
||||
if(current && current->screen == c->screen)
|
||||
if(current && current->screen == screen)
|
||||
cmapfocus(current);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue