diff options
| author | Rye <rye@lindenlab.com> | 2025-02-02 07:09:27 -0500 | 
|---|---|---|
| committer | Rye <rye@lindenlab.com> | 2025-02-11 05:04:07 -0500 | 
| commit | 8acac2cde102c5d0f28a866cf1fc298c6d021f24 (patch) | |
| tree | 6d859d2b4a19dba99d419fee5e42c27932179f03 /indra/llaudio | |
| parent | d5460dad48b407fd022025e8f7f69f47903afff1 (diff) | |
Fix openal leak causing crash during shutdown
Diffstat (limited to 'indra/llaudio')
| -rw-r--r-- | indra/llaudio/llaudioengine_openal.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/indra/llaudio/llaudioengine_openal.cpp b/indra/llaudio/llaudioengine_openal.cpp index 18d682b554..755547bfaa 100644 --- a/indra/llaudio/llaudioengine_openal.cpp +++ b/indra/llaudio/llaudioengine_openal.cpp @@ -79,7 +79,7 @@ bool LLAudioEngine_OpenAL::init(void* userdata, const std::string &app_title)      ALCdevice *device = alcGetContextsDevice(alcGetCurrentContext());      alcGetIntegerv(device, ALC_MAJOR_VERSION, 1, &major); -    alcGetIntegerv(device, ALC_MAJOR_VERSION, 1, &minor); +    alcGetIntegerv(device, ALC_MINOR_VERSION, 1, &minor);      LL_INFOS() << "ALC version: " << major << "." << minor << LL_ENDL;      LL_INFOS() << "ALC default device: " @@ -190,6 +190,8 @@ LLAudioChannelOpenAL::~LLAudioChannelOpenAL()  void LLAudioChannelOpenAL::cleanup()  {      alSourceStop(mALSource); +    alSourcei(mALSource, AL_BUFFER, AL_NONE); +      mCurrentBufferp = NULL;  } | 
