amend per merge_requests/22#note_2642034

Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
This commit is contained in:
Thomas E. Dickey 2024-11-04 04:00:20 -05:00
parent 8d27f282e4
commit 68fe24020c
No known key found for this signature in database
GPG key ID: CC2AF4472167BE03

View file

@ -766,7 +766,7 @@ _XcursorXcFileLoadImage (XcursorFile *file, int size, XcursorBool resize)
image = _XcursorReadImage (file, fileHeader, toc);
_XcursorFileHeaderDestroy (fileHeader);
if (resize && (image->size != (XcursorDim) size))
if (resize && image != NULL && (image->size != (XcursorDim) size))
{
XcursorImage *resized_image = _XcursorResizeImage (image, size);
XcursorImageDestroy (image);