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

Fix some potential null pointer dereferences #20

Merged
merged 1 commit into from
Dec 2, 2018

Conversation

CounterPillow
Copy link
Contributor

These two were discovered through clang's scan-build. I don't know if they can be triggered in the real world since they do appear to rely on certain GUI states which a human may not be able to trigger.

These two were discovered through clang's scan-build. I don't know
if they can be triggered in the real world since they do appear to
rely on certain GUI states which a human may not be able to trigger.
@mikesart mikesart merged commit 9e4b737 into mikesart:master Dec 2, 2018
@mikesart
Copy link
Owner

mikesart commented Dec 2, 2018

Shouldn't be able to happen due to the if (!win) m_colorpicker_event.clear() code above in the function, but it never hurts to be overly cautious. Thanks!

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