Clean up ps->sync_fence after error

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2018-12-30 08:05:16 +00:00
parent d12b3c1e1d
commit 14f357ea2b
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 1 additions and 0 deletions

View File

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