Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL demos leak memory by call to SDL_GetClipboardText #765

Open
klei1984 opened this issue Jan 24, 2025 · 0 comments
Open

SDL demos leak memory by call to SDL_GetClipboardText #765

klei1984 opened this issue Jan 24, 2025 · 0 comments

Comments

@klei1984
Copy link

Hello,
SDL2 (SDL3 behaves the same way) demos call SDL_GetClipboardText(), but do not call SDL_free() on the returned pointer. According to the SDL documentation, Caller must call SDL_free() on the returned pointer when done with it (even if there was an error).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant