Destroys a tray object.
Defined in <SDL3/SDL_tray.h>
void SDL_DestroyTray(SDL_Tray *tray);| SDL_Tray * | tray | the tray icon to be destroyed. | 
This also destroys all associated menus and entries.
This function should be called on the thread that created the tray.
This function is available since SDL 3.2.0.