Skip to content

Commit

Permalink
Removing Double-free Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thouravi authored Feb 17, 2025
1 parent 5c79f4c commit 12cb2a2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/video/windows/SDL_windowsmouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,6 @@ static HCURSOR GetCachedCursor(SDL_Cursor *cursor)

entry = (CachedCursor *)SDL_malloc(sizeof(*entry));
if (!entry) {
if (hcursor) {
DestroyCursor(hcursor);
}
SDL_free(entry);
goto error;
}
entry->cursor = hcursor;
Expand Down

0 comments on commit 12cb2a2

Please sign in to comment.