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

Fixed small memory leak by closing the device in EasyTab_Unload #17

Merged
merged 1 commit into from
Sep 26, 2016

Conversation

AfroDave
Copy link
Contributor

Implemented a small fix to correct a memory leak when unloading EasyTab, the device handle returned by XOpenDevice was not being closed.

This does change the API, as unloading now requires a pointer to the Display* in order to close the device. I opted for this approach because it is more explicit and avoids retaining additional state. Alternatively, a copy to the original Display* passed in during load could be retained in the EasyTabInfo struct.

@ApoorvaJ ApoorvaJ merged commit 437dc93 into ApoorvaJ:master Sep 26, 2016
@ApoorvaJ
Copy link
Owner

The API change makes sense. Thanks for the contribution! :)

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

Successfully merging this pull request may close these issues.

2 participants