mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-07 08:38:04 +02:00
Fix memory leak in XOpenDisplay
Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
This commit is contained in:
parent
fca0b0ba3f
commit
f76fd81dfb
1 changed files with 1 additions and 0 deletions
|
|
@ -166,6 +166,7 @@ XOpenDisplay (
|
|||
|
||||
#if USE_XCB
|
||||
if(!_XConnectXCB(dpy, display, &fullname, &iscreen)) {
|
||||
dpy->display_name = fullname;
|
||||
OutOfMemory(dpy, 0);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue