Now all control paths through main() destroy the GlDoublePendulumApp instance.