various memory leaks and compiler warning fixes
removed some dead code
Merge branch 'master' of https://github.com/worklist/hifi into bugfixes
Merge pull request #1121 from ZappoMan/bugfixes

one memory leak fix and several compiler warnings/analysis errors
Merge branch 'master' of https://github.com/worklist/hifi