Fixed minor memory leak in sample app
Trivial code analyser appeasements