Commit b77ec00f authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

xaudio2: Shut down OpenAL in the correct order.

parent 68e45dd4
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment