src/sensor/windows/SDL_windowssensor.c
changeset 13714 0d9ea2541827
parent 13710 a1a6885cff94
child 13716 d2647d9e93c7
     1.1 --- a/src/sensor/windows/SDL_windowssensor.c	Wed Apr 08 08:42:15 2020 -0700
     1.2 +++ b/src/sensor/windows/SDL_windowssensor.c	Wed Apr 08 09:00:10 2020 -0700
     1.3 @@ -281,6 +281,9 @@
     1.4  	} else {
     1.5  		name = SDL_strdup("Unknown Sensor");
     1.6  	}
     1.7 +    if (bstr_name != NULL) {
     1.8 +        SysFreeString(bstr_name);
     1.9 +    }
    1.10  	if (!name) {
    1.11  		return SDL_OutOfMemory();
    1.12  	}
    1.13 @@ -339,8 +342,6 @@
    1.14  	HRESULT hr;
    1.15  	ISensorCollection *sensor_collection = NULL;
    1.16  
    1.17 -	while (!IsDebuggerPresent()) Sleep(100);
    1.18 -
    1.19  	if (WIN_CoInitialize() == S_OK) {
    1.20  		SDL_windowscoinit = SDL_TRUE;
    1.21  	}