Răsfoiți Sursa

Fixed double-release of GameInput at shutdown

Sam Lantinga 1 lună în urmă
părinte
comite
3fdd15adaa
1 a modificat fișierele cu 0 adăugiri și 5 ștergeri
  1. 0 5
      src/video/windows/SDL_windowsgameinput.cpp

+ 0 - 5
src/video/windows/SDL_windowsgameinput.cpp

@@ -580,11 +580,6 @@ void WIN_QuitGameInput(SDL_VideoDevice *_this)
             GAMEINPUT_InternalRemoveByIndex(data, 0);
         }
 
-        data->pGameInput->Release();
-        data->pGameInput = NULL;
-    }
-
-    if (data->pGameInput) {
         SDL_QuitGameInput();
         data->pGameInput = NULL;
     }