diff --git a/test/testtray.c b/test/testtray.c index 71533bac7a651..d5652ed185b96 100644 --- a/test/testtray.c +++ b/test/testtray.c @@ -514,7 +514,7 @@ int main(int argc, char **argv) return 1; } - SDL_Window *w = SDL_CreateWindow("", 640, 480, 0); + SDL_Window *w = SDL_CreateWindow("testtray", 640, 480, 0); if (!w) { SDL_Log("Couldn't create window: %s", SDL_GetError()); @@ -631,6 +631,7 @@ int main(int argc, char **argv) if (!trays_destroyed) { SDL_DestroyTray(tray); } + SDL_free(trays); clean_window: if (w) {