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.
This commit is contained in:
David Reid
2020-06-23 19:55:46 +10:00
parent 825ab5d64a
commit e0294ac74c
+2 -2
View File
@@ -132,9 +132,9 @@ 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;
return 0;