Browse Source

tray: plug leak of cache dir path

Anonymous Maarten 3 weeks ago
parent
commit
14470755b7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/tray/unix/SDL_tray.c

+ 1 - 0
src/tray/unix/SDL_tray.c

@@ -307,6 +307,7 @@ SDL_Tray *SDL_CreateTray(SDL_Surface *icon, const char *tooltip)
 
     SDL_RegisterTray(tray);
     SDL_Gtk_ExitContext(gtk);
+    SDL_free(sdl_dir);
 
     return tray;