Commit 81072902 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

dsound: HeapFree secondaries (Coverity).

parent a428416a
......@@ -1562,6 +1562,7 @@ static void test_hw_buffers(void)
for(i = 0; i < caps.dwMaxHwMixingAllBuffers; ++i)
if(secondaries[i])
IDirectSoundBuffer_Release(secondaries[i]);
HeapFree(GetProcessHeap(), 0, secondaries);
IDirectSoundBuffer_Release(primary);
IDirectSound_Release(ds);
......
......@@ -1049,6 +1049,8 @@ static void test_hw_buffers(void)
if(secondaries[i])
IDirectSoundBuffer_Release(secondaries[i]);
HeapFree(GetProcessHeap(), 0, secondaries);
IDirectSoundBuffer_Release(primary);
IDirectSound8_Release(ds);
}
......
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