Fixed freeing strings created by strdup() with SDL_free().

This only worked on platforms where SDL_free() wraps free().
This commit is contained in:
Philipp Wiesemann
2016-06-28 21:08:23 +02:00
parent 2f016cf88d
commit 6ec5e64056
3 changed files with 8 additions and 8 deletions

View File

@@ -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;
}