CvPcb: Fix crashes when starting cvPcb (could be Windows Specific) and after closing the footprint viewer.