From: ehofman Date: Fri, 3 Mar 2006 15:11:35 +0000 (+0000) Subject: Mathias Fröhlich: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5b3c5407a1848b4c60b8a556f896cefe323830f5;p=simgear.git Mathias Fröhlich: I have some bugfixes which will avoid fg just crashing if the sound device could not be opened. --- diff --git a/simgear/sound/xmlsound.cxx b/simgear/sound/xmlsound.cxx index 0c8c3fd9..218c3f68 100644 --- a/simgear/sound/xmlsound.cxx +++ b/simgear/sound/xmlsound.cxx @@ -78,7 +78,8 @@ SGXmlSound::SGXmlSound() SGXmlSound::~SGXmlSound() { - _sample->stop(); + if (_sample) + _sample->stop(); delete _condition;