]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/xmlsound.cxx
Use a reference counted pointer for the condition.
[simgear.git] / simgear / sound / xmlsound.cxx
index 18850f84b866a1fc38a7bb7e788be45cc6eb6358..474386039fd6147fa66dc128b61edc3476801dd8 100644 (file)
@@ -63,7 +63,6 @@ static const struct {
 
 SGXmlSound::SGXmlSound()
   : _sample(NULL),
-    _condition(NULL),
     _active(false),
     _name(""),
     _mode(SGXmlSound::ONCE),
@@ -80,8 +79,6 @@ SGXmlSound::~SGXmlSound()
     if (_sample)
         _sample->stop();
 
-    delete _condition;
-
     _volume.clear();
     _pitch.clear();
 }