diff options
Diffstat (limited to 'src/display.c')
-rw-r--r-- | src/display.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/display.c b/src/display.c index 252a056..a2e685c 100644 --- a/src/display.c +++ b/src/display.c @@ -57,7 +57,8 @@ _XcursorCloseDisplay (Display *dpy, XExtCodes *codes) } _XUnlockMutex (_Xglobal_lock); - _XcursorFreeDisplayInfo (info); + if (info) + _XcursorFreeDisplayInfo (info); return 0; } |