Browse Source

Removing Double-free Issue

ImThour 2 months ago
parent
commit
057c3602e9
1 changed files with 0 additions and 4 deletions
  1. 0 4
      src/video/windows/SDL_windowsmouse.c

+ 0 - 4
src/video/windows/SDL_windowsmouse.c

@@ -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;