Commit 034cc5f8 authored by David Reid's avatar David Reid

Fix engine_advanced example.

parent 5b90f7b7
...@@ -238,6 +238,9 @@ int main(int argc, char** argv) ...@@ -238,6 +238,9 @@ int main(int argc, char** argv)
ma_device_uninit(&devices[iEngine]); ma_device_uninit(&devices[iEngine]);
} }
/* The context can only be uninitialized after the devices. */
ma_context_uninit(&context);
/* /*
Do the resource manager last. This way we can guarantee the data callbacks of each device aren't trying to access Do the resource manager last. This way we can guarantee the data callbacks of each device aren't trying to access
and data managed by the resource manager. and data managed by the resource manager.
......
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