Fix connection deallocation
Fix memory leak on get app name
Merge pull request #36 from madmac2501/master

Fix connection deallocation