mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Don't call XCloseDisplay with a NULL Display*
* Normally we'd always have a Display*, but if we're running without an X server present, the Display* will be NULL.
This commit is contained in:
@@ -452,7 +452,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
int ret = renderdoccmd(env, argc, argv);
|
||||
|
||||
XCloseDisplay(display);
|
||||
if(display)
|
||||
XCloseDisplay(display);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user