diff options
author | Chris Wilson <cpwilson@taz.qinetiq.com> | 2006-08-12 19:55:44 +0300 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-08-12 19:55:44 +0300 |
commit | e0a501e91c270c0e99a55aa568f6df0d3d6e541d (patch) | |
tree | e5b7c328b10d3b7a974e880df8e3ef7b63dc0a17 /src/library.c | |
parent | 2f08984396552c0719fbc3d3e1148157a1423376 (diff) |
fix leak in header destruction
Fix a couple of if (!foo) free(foo); tests.
Diffstat (limited to 'src/library.c')
-rw-r--r-- | src/library.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/library.c b/src/library.c index 8cbc949..3c058ef 100644 --- a/src/library.c +++ b/src/library.c @@ -263,8 +263,7 @@ XcursorScanTheme (const char *theme, const char *name) */ for (i = inherits; i && f == 0; i = _XcursorNextPath (i)) f = XcursorScanTheme (i, name); - if (inherits) - free (inherits); + free (inherits); return f; } |