소스 검색

Removing Double-free Issue

ImThour 7 달 전
부모
커밋
057c3602e9
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  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;