Use a reference counted pointer for the condition.

Modified Files:
	simgear/sound/xmlsound.hxx simgear/sound/xmlsound.cxx
This commit is contained in:
frohlich
2009-03-11 05:34:02 +00:00
committed by Tim Moore
parent fef2006663
commit deef158822
2 changed files with 1 additions and 4 deletions

View 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();
}

View File

@@ -138,7 +138,7 @@ private:
SGSoundMgr * _mgr;
SGSharedPtr<SGSoundSample> _sample;
SGCondition * _condition;
SGSharedPtr<SGCondition> _condition;
SGPropertyNode_ptr _property;
bool _active;