mirror of
https://gitlab.freedesktop.org/xorg/lib/libxcursor.git
synced 2026-05-05 00:38:10 +02:00
Free the partial header after failing to open the cursor.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
073eb2c56f
commit
f49e7e1608
1 changed files with 3 additions and 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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue