| Summary: | Two members of Windows WindowData not initialized | ||
|---|---|---|---|
| Product: | SDL | Reporter: | norfanin |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.0 | ||
| Hardware: | All | ||
| OS: | Windows (All) | ||
| Attachments: | Initialize all SDL_WindowData members. | ||
Good catch, thanks! http://hg.libsdl.org/SDL/rev/dad9001a9fc7 |
Created attachment 1353 [details] Initialize all SDL_WindowData members. SetupWindowData in SDL_windowswindow.c doesn't initialize two members of SDL_WindowData with NULL. This is an issue because other parts of the SDL code seem to make the assumption that this is the case. WIN_DestroyWindowFramebuffer for example uses data->mdc and data->hbm if they're not NULL.