1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Add al delete to group leave

This commit is contained in:
Daniel Hrabovcak 2015-05-25 12:19:56 -04:00
parent fb707fe1f1
commit bd2f8b5db5
2 changed files with 3 additions and 3 deletions

View File

@ -1326,10 +1326,8 @@ void Core::resetCallSources()
{
for (ToxGroupCall& call : groupCalls)
{
for (QPair<int, ALuint> alSources : alSources)
{
for (QPair<int, ALuint> alSources : call)
alDeleteSources(1, alSources.second);
}
call.alSources.clear();
}

View File

@ -629,6 +629,8 @@ void Core::leaveGroupCall(int groupId)
groupCalls[groupId].active = false;
disconnect(groupCalls[groupId].sendAudioTimer,0,0,0);
groupCalls[groupId].sendAudioTimer->stop();
for (QPair<int, ALuint> alSources : groupCalls[groupId])
alDeleteSources(1, alSources.second);
groupCalls[groupId].alSources.clear();
Audio::unsuscribeInput();
delete groupCalls[groupId].sendAudioTimer;