macosx: improve handling of playlist view state in case of multiple vouts

close #10761
macosx: fix some static code analysis warnings

Most of them are memleaks, uninitialized values, unused code
and type mismatches (float / int vs. CGFloat, uint vs. int)