xaudio2: Shut down OpenAL in the correct order.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Andrew Eikum 2016-06-01 14:51:50 -05:00 committed by Alexandre Julliard
parent 68e45dd4d0
commit b77ec00f1c
1 changed files with 3 additions and 3 deletions

View File

@ -963,12 +963,12 @@ static void WINAPI XA2M_DestroyVoice(IXAudio2MasteringVoice *iface)
IAudioClient_Release(This->aclient);
This->aclient = NULL;
alcCloseDevice(This->al_device);
This->al_device = NULL;
alcDestroyContext(This->al_ctx);
This->al_ctx = NULL;
alcCloseDevice(This->al_device);
This->al_device = NULL;
LeaveCriticalSection(&This->lock);
}