mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-06 07:20:48 +00:00
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:
parent
d13fc3c3a7
commit
9f8dffbd2d
1 changed files with 1 additions and 0 deletions
|
@ -4603,6 +4603,7 @@ void SDL_DestroyRendererWithoutFreeing(SDL_Renderer *renderer)
|
||||||
|
|
||||||
if (renderer->window) {
|
if (renderer->window) {
|
||||||
SDL_ClearProperty(SDL_GetWindowProperties(renderer->window), SDL_PROP_WINDOW_RENDERER_POINTER);
|
SDL_ClearProperty(SDL_GetWindowProperties(renderer->window), SDL_PROP_WINDOW_RENDERER_POINTER);
|
||||||
|
renderer->window = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Free the target mutex */
|
/* Free the target mutex */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue