grim/guifications2

grim/guifications2/
Fix a bunch of issues scanbuild found
draft
2 months ago, Gary Kramlich
2bcb53eb005d