Merge commit '3472d77c4af7bce32e7580c2d9ccf3541aec79b9'
Merge remote-tracking branch 'upstream/master'
Fix possible deref of a prefiously freed pointer
Fix possible resource leaks
Fix possible resource leaks for incorrect KAP charts
Fix possible resource leaks
Fix resource leak on failure to load ENC chart update
Remove unnecesary check confusing code analysis tools
Fix the comparison - 0 is a valid file descriptor and would be leaked if returned
Fix leak on failure to open an ENC chart
Fix string overflow and possible out of bounds access
Fix a string overflow while slightly improving performance
Merge pull request #222 from nohal/cov

Fixes for some problems discovered by code analysis
Implement Options setting for display size to accurately calculate onscreen scale.
Add Toggle FullScreen item to context menu if in FullScreen mode.
Correct display problems in mail request dialog
Correct scale calculations for rotated view.
Correct quilt mode toggle action persistence.
remove + - shortcuts from menu as they break smooth zooming
Merge remote-tracking branch 'upstream/master'