Skip to content

Commit 057c360

Browse files
thouravislouken
authored andcommitted
Removing Double-free Issue
1 parent 5c79f4c commit 057c360

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/video/windows/SDL_windowsmouse.c

-4
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,6 @@ static HCURSOR GetCachedCursor(SDL_Cursor *cursor)
418418

419419
entry = (CachedCursor *)SDL_malloc(sizeof(*entry));
420420
if (!entry) {
421-
if (hcursor) {
422-
DestroyCursor(hcursor);
423-
}
424-
SDL_free(entry);
425421
goto error;
426422
}
427423
entry->cursor = hcursor;

0 commit comments

Comments
 (0)