diff options
author | Philipp Wiesemann <philipp.wiesemann@arcor.de> | 2016-05-05 22:05:21 +0200 |
---|---|---|
committer | Philipp Wiesemann <philipp.wiesemann@arcor.de> | 2016-05-05 22:05:21 +0200 |
commit | 690a56d6f88c8c094f3496d52c80fdab97290e10 (patch) | |
tree | d1239ddd21da58033c2aee48c78534176bbf35a1 /test/testgamecontroller.c | |
parent | 37ad91a67b258db4f9401a5c08d0432f5dbd289b (diff) | |
download | sdl-690a56d6f88c8c094f3496d52c80fdab97290e10.tar.gz |
Fixed memory leak in game controller test program.
Diffstat (limited to 'test/testgamecontroller.c')
-rw-r--r-- | test/testgamecontroller.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c index ec1dfd322..908f40005 100644 --- a/test/testgamecontroller.c +++ b/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; |