| Summary: | [PATCH] NULL out pointer to freed window surface | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Jay Petacat <libsdl.org> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Patch | ||
Good catch, thanks! https://hg.libsdl.org/SDL/rev/458f2f2919ab |
Created attachment 4300 [details] Patch This behavior matches SDL_RecreateWindow and makes it less likely that another piece of code (e.g. a DestroyWindowFramebuffer implementation) will attempt to use or free the stale surface pointer.