diff options
Diffstat (limited to 'src/file.c')
-rw-r--r-- | src/file.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -780,10 +780,14 @@ XcursorXcFileLoad (XcursorFile *file, } images = XcursorImagesCreate (nimage); if (!images) + { + _XcursorFileHeaderDestroy (fileHeader); return 0; + } comments = XcursorCommentsCreate (ncomment); if (!comments) { + _XcursorFileHeaderDestroy (fileHeader); XcursorImagesDestroy (images); return 0; } |