iOS: Fixed possible crash on disconnect
iOS: Fix resource leak
Merge pull request #1196 from mfleisz/master

iOS: Fixed possible crash on disconnect