Clean up ps->sync_fence after error
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
d12b3c1e1d
commit
14f357ea2b
|
@ -2901,6 +2901,7 @@ session_init(session_t *ps_old, int argc, char **argv) {
|
|||
if (e) {
|
||||
log_error("Failed to create a XSync fence. xrender-sync-fence will be disabled");
|
||||
ps->o.xrender_sync_fence = false;
|
||||
ps->sync_fence = XCB_NONE;
|
||||
free(e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue