Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed memory leak in game controller test program.
- Loading branch information
Showing
with
2 additions
and
0 deletions.
-
+2
−0
test/testgamecontroller.c
|
@@ -181,6 +181,8 @@ WatchGameController(SDL_GameController * gamecontroller) |
|
|
window = SDL_CreateWindow(title, SDL_WINDOWPOS_CENTERED, |
|
|
SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH, |
|
|
SCREEN_HEIGHT, 0); |
|
|
SDL_free(title); |
|
|
title = NULL; |
|
|
if (window == NULL) { |
|
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't create window: %s\n", SDL_GetError()); |
|
|
return SDL_FALSE; |
|
|