Fixed many memory leaks
* One more leak fixed.
* debug print removed
Fixes suggested by Bertrand
More cosmetic changes
Some more code style changes, getting used to openTX style.
Merge branch 'upstream/next'
Merge pull request #975 from projectkk2glider/companion_memory_leaks

Companion memory leaks fixed