fix memory leak in D3D11_CreateRenderer

main
pionere 2022-02-05 12:28:37 +01:00 committed by Sylvain
parent 3f8b450de2
commit 0983fcee5e
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E
1 changed files with 1 additions and 0 deletions

View File

@ -2345,6 +2345,7 @@ D3D11_CreateRenderer(SDL_Window * window, Uint32 flags)
data = (D3D11_RenderData *) SDL_calloc(1, sizeof(*data));
if (!data) {
SDL_free(renderer);
SDL_OutOfMemory();
return NULL;
}