1
0
Fork 0
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:
Yuxuan Shui 2024-10-15 00:35:33 +01:00
parent 1f3b1a6d1f
commit e4eef7541d
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -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;
}