mirror of
https://gitlab.freedesktop.org/xorg/lib/libxcursor.git
synced 2026-04-26 02:00:38 +02:00
amend per merge_requests/22#note_2642034
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
This commit is contained in:
parent
8d27f282e4
commit
68fe24020c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue