From: Torsten Dreyer Date: Fri, 6 Aug 2010 06:44:34 +0000 (+0200) Subject: Fix segfault on invalid command line arguments X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1aa484aee5af0dcd89fcc5be9248f9d59363b3c0;p=flightgear.git Fix segfault on invalid command line arguments If FlightGear terminated before the FDM was instantiated it crashed. --- diff --git a/src/FDM/fdm_shell.cxx b/src/FDM/fdm_shell.cxx index bec319c09..a4cfad309 100644 --- a/src/FDM/fdm_shell.cxx +++ b/src/FDM/fdm_shell.cxx @@ -98,7 +98,7 @@ void FDMShell::bind() void FDMShell::unbind() { - _impl->unbind(); + if( _impl ) _impl->unbind(); } void FDMShell::update(double dt)