mirror of
https://github.com/yshui/picom.git
synced 2025-04-21 18:03:02 -04:00
x: fix x_generic_async_callback segfault on exit
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
1f3b1a6d1f
commit
e4eef7541d
1 changed files with 1 additions and 1 deletions
2
src/x.c
2
src/x.c
|
@ -164,7 +164,7 @@ static void x_generic_async_callback(struct x_connection * /*c*/,
|
|||
auto line = req->line;
|
||||
free(req);
|
||||
|
||||
if (reply_or_error->response_type != 0) {
|
||||
if (reply_or_error == NULL || reply_or_error->response_type != 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue