diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-04-01 12:15:46 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-04-01 12:16:56 +0100 |
commit | f49e7e1608f2dac140f60bcae21d5c37f79fc41b (patch) | |
tree | 885f0e458d8d3caa3f50fbe45e5dad6e9b49f4f6 /src | |
parent | 073eb2c56f4794275eee40a825dbfe1232bb2690 (diff) |
Free the partial header after failing to open the cursor.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/file.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -713,7 +713,10 @@ XcursorXcFileLoadAllImages (XcursorFile *file) } images = XcursorImagesCreate (nimage); if (!images) + { + _XcursorFileHeaderDestroy (fileHeader); return NULL; + } for (toc = 0; toc < fileHeader->ntoc; toc++) { switch (fileHeader->tocs[toc].type) { |