mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-26 19:33:44 +02:00
haiku: Don't strdup SDL_GetError()'s string before using it in SDL_SetError().
This isn't necessary anymore, after recent fixes.
(cherry picked from commit 8fb1c6e367)
This commit is contained in:
@@ -222,9 +222,7 @@ void SDL_SYS_ShowFileDialogWithProperties(SDL_FileDialogType type, SDL_DialogFil
|
||||
};
|
||||
|
||||
if (!SDL_InitBeApp()) {
|
||||
char *err = SDL_strdup(SDL_GetError());
|
||||
SDL_SetError("Couldn't init Be app: %s", err);
|
||||
SDL_free(err);
|
||||
SDL_SetError("Couldn't init Be app: %s", SDL_GetError());
|
||||
callback(userdata, NULL, -1);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user