diff options
-rw-r--r-- | src/library.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library.c b/src/library.c index 3c058ef..ea59912 100644 --- a/src/library.c +++ b/src/library.c @@ -263,7 +263,8 @@ XcursorScanTheme (const char *theme, const char *name) */ for (i = inherits; i && f == 0; i = _XcursorNextPath (i)) f = XcursorScanTheme (i, name); - free (inherits); + if (inherits != NULL) + free (inherits); return f; } |