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 2769 - Memory leak on mouse and keyboard events
Summary: Memory leak on mouse and keyboard events
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.1
Hardware: x86_64 Windows 7
: P2 minor
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-29 20:01 UTC by Onat Turkcuoglu
Modified: 2017-08-14 04:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Onat Turkcuoglu 2014-10-29 20:01:47 UTC
Using SDL_PumpEvents and SDL_WaitEvent[Timeout] in main leaks memory whenever moving cursor over the screen or on keyboard events.
Using the usual SDL_PollEvent loop fixed the problem, which seems weird given it implicitly calls SDL_PumpEvents according to the docs.
I've confirmed the leak on multiple machines, with Win8.1 and Win7.
Comment 1 Onat Turkcuoglu 2014-11-04 12:25:47 UTC
It seems there is an upper bound to the increasing memory, so I'm guessing some internal buffers are being filled, so this probably isn't actually a leak.
Comment 2 Ryan C. Gordon 2015-02-19 05:22:17 UTC
Marking a large number of bugs with the "triage-2.0.4" keyword at once. Sorry if you got a lot of email from this. This is to help me sort through some bugs in regards to a 2.0.4 release. We may or may not fix this bug for 2.0.4, though!
Comment 3 Sam Lantinga 2017-08-14 04:39:33 UTC
Yup, it shouldn't be actually leaking here.