Fix use of err after it is freed
This commit is contained in:
parent
b5583d6cf4
commit
395dc7bebd
|
@ -1048,8 +1048,8 @@ void randr_init(int *event_base, const bool disable_randr15) {
|
|||
xcb_randr_query_version_reply(
|
||||
conn, xcb_randr_query_version(conn, XCB_RANDR_MAJOR_VERSION, XCB_RANDR_MINOR_VERSION), &err);
|
||||
if (err != NULL) {
|
||||
free(err);
|
||||
ELOG("Could not query RandR version: X11 error code %d\n", err->error_code);
|
||||
free(err);
|
||||
fallback_to_root_output();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue