Commit e0294ac7 authored by David Reid's avatar David Reid

Fix a bug in fixed_sized_callback.

This is uninitializing the ring buffer before the device which results
in a situation where a stray data callback may try touching the buffer
after it's be uninitialized.
parent 825ab5d6
......@@ -132,8 +132,8 @@ int main(int argc, char** argv)
printf("Press Enter to quit...\n");
getchar();
ma_pcm_rb_uninit(&g_rb);
ma_device_uninit(&device);
ma_pcm_rb_uninit(&g_rb);
(void)argc;
(void)argv;
......
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