diff options
Diffstat (limited to 'src/xftdpy.c')
-rw-r--r-- | src/xftdpy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xftdpy.c b/src/xftdpy.c index bde7c65..47e8c33 100644 --- a/src/xftdpy.c +++ b/src/xftdpy.c @@ -53,7 +53,8 @@ _XftCloseDisplay (Display *dpy, XExtCodes *codes _X_UNUSED) for (prev = &_XftDisplayInfo; (info = *prev); prev = &(*prev)->next) if (info->display == dpy) break; - *prev = info->next; + if (info != NULL) + *prev = info->next; free (info); return 0; |