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

Crash when removing inactive touches #22

Open
toddreed opened this issue May 28, 2021 · 0 comments
Open

Crash when removing inactive touches #22

toddreed opened this issue May 28, 2021 · 0 comments
Assignees
Labels

Comments

@toddreed
Copy link
Owner

This was reported in a comment by @gatamar for #16, but I think it’s a separate bug.

The issue is with line 85:

void const * keys[count];
void const * values[count];
CFDictionaryGetKeysAndValues(_touchDictionary, keys, values);
for (CFIndex i = 0; i < count; ++i)
{
UITouch *touch = (__bridge UITouch *)keys[i];

which would attempt to retain an object that may no longer exist.

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

No branches or pull requests

1 participant