diff options
author | Juha-Pekka Heikkila <[email protected]> | 2014-02-07 14:43:58 +0200 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-02-07 08:14:04 -0700 |
commit | 2ae1437a8ecf81676012c7a3507a6ed58e7338b2 (patch) | |
tree | e0db9642cf77c0e637da0e6df605bab05e363a55 /src/glx/glxext.c | |
parent | d28e92ff74892be2ce345e33863a172ae29825b6 (diff) |
glx: Add missing null check in __glXCloseDisplay
Signed-off-by: Juha-Pekka Heikkila <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/glx/glxext.c')
-rw-r--r-- | src/glx/glxext.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glx/glxext.c b/src/glx/glxext.c index 2711e57b793..4a195bd40ba 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -269,7 +269,8 @@ __glXCloseDisplay(Display * dpy, XExtCodes * codes) } _XUnlockMutex(_Xglobal_lock); - glx_display_free(priv); + if (priv != NULL) + glx_display_free(priv); return 1; } |