We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5121

Summary: [Patch]Use SDL_calloc instead of calloc in Wayland_CreateWindow
Product: SDL Reporter: Mathieu Eyraud <meyraud705>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.13   
Hardware: All   
OS: Linux   
Attachments: replace calloc by SDL_calloc

Description Mathieu Eyraud 2020-05-04 17:22:26 UTC
Created attachment 4330 [details]
replace calloc by SDL_calloc

'SDL_Windows::driverdata' of a Wayland window is allocated by calloc in 'Wayland_CreateWindow' but freed by SDL_free in 'Wayland_DestroyWindow'.
Comment 1 Sam Lantinga 2020-05-04 20:19:49 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/fdabcc76aaaf