render: Set renderer->window to NULL in SDL_DestroyRendererWithoutFreeing.

This wasn't triggering a bug afaik, but obviously the more correct thing to do.

Reference Issue #10174.
This commit is contained in:
Ryan C. Gordon 2024-07-04 14:47:46 -04:00
parent d13fc3c3a7
commit 9f8dffbd2d
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

@ -4603,6 +4603,7 @@ void SDL_DestroyRendererWithoutFreeing(SDL_Renderer *renderer)
if (renderer->window) {
SDL_ClearProperty(SDL_GetWindowProperties(renderer->window), SDL_PROP_WINDOW_RENDERER_POINTER);
renderer->window = NULL;
}
/* Free the target mutex */