Fix memory leaks and warnings
Fix "Value Stored to 'variable' is never read" analyzer warnings
Improve an init implementation in BasicUPnPDevice which was generating an analyzer warning