Skip to content

Commit

Permalink
testtray: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 20, 2025
1 parent 931f53c commit 970333d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/testtray.c
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -631,6 +631,7 @@ int main(int argc, char **argv)
if (!trays_destroyed) {
SDL_DestroyTray(tray);
}
SDL_free(trays);

clean_window:
if (w) {
Expand Down

0 comments on commit 970333d

Please sign in to comment.