Skip to content

Commit

Permalink
Fix engine_advanced example.
Browse files Browse the repository at this point in the history
  • Loading branch information
mackron committed Oct 2, 2022
1 parent 5b90f7b commit 034cc5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/engine_advanced.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ int main(int argc, char** argv)
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
and data managed by the resource manager.
Expand Down

0 comments on commit 034cc5f

Please sign in to comment.