mirror of
https://github.com/encounter/SDL.git
synced 2025-12-09 13:37:56 +00:00
Fixed freeing strings created by strdup() with SDL_free().
This only worked on platforms where SDL_free() wraps free().
This commit is contained in:
@@ -145,7 +145,7 @@ display_handle_geometry(void *data,
|
||||
{
|
||||
SDL_VideoDisplay *display = data;
|
||||
|
||||
display->name = strdup(model);
|
||||
display->name = SDL_strdup(model);
|
||||
display->driverdata = output;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user