소스 검색

Fixed freeing the Windows blank cursor

Sam Lantinga 4 년 전
부모
커밋
3167ba342d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/video/windows/SDL_windowsmouse.c

+ 2 - 1
src/video/windows/SDL_windowsmouse.c

@@ -372,7 +372,8 @@ WIN_QuitMouse(_THIS)
     }
 
     if (SDL_blank_cursor) {
-        SDL_FreeCursor(SDL_blank_cursor);
+        WIN_FreeCursor(SDL_blank_cursor);
+        SDL_blank_cursor = NULL;
     }
 }