lmirosevic / GBPing

Highly accurate ICMP Ping controller for iOS
Apache License 2.0
279 stars 87 forks source link

_hostRef deallocation on separate thread causing EXC_BAD_ACCESS #18

Closed mosobase closed 8 years ago

mosobase commented 8 years ago

Kind of hard to explain this one, mainly because its hard to test. The _hostRef variable used in -(void)setupWithBlock: is released in -(void)stop, this means theres a slim chance that even after checking that the value is !nil there is a small window where it could become nil causing this error, I ran into that today

lmirosevic commented 8 years ago

Thanks for the PR! It's been merged and will be in the next release.