Skip to content
Permalink
Browse files
free the 'display' after it was added to global list
  • Loading branch information
christianrauch committed Feb 10, 2021
1 parent 005e2c5 commit 4183211a544b3a4e7c8c3222c223527fa17c1812
Showing 1 changed file with 4 additions and 0 deletions.
@@ -297,6 +297,10 @@ display_handle_done(void *data,

SDL_AddVideoDisplay(display, SDL_FALSE);
SDL_free(display->name);
/* The 'display' content was copied in previous SDL_AddVideoDisplay call.
* We have to remove this reference, else it will be lost indefinitely.
*/
SDL_free(display);
}

static void

0 comments on commit 4183211

Please sign in to comment.