mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
properly unset default mixer on engine destroy
fixes a segfault/broken assertion that could happen right before quiting
This commit is contained in:
parent
26089d86e6
commit
ddfe7cc50a
1 changed files with 1 additions and 1 deletions
|
@ -525,7 +525,7 @@ SYMBOL_EXPORT void libsuperderpy_destroy(struct Game* game) {
|
|||
al_destroy_display(game->display);
|
||||
al_destroy_user_event_source(&(game->event_source));
|
||||
al_destroy_event_queue(game->_priv.event_queue);
|
||||
al_set_default_mixer(NULL); // does not destroy anything
|
||||
al_restore_default_mixer();
|
||||
al_destroy_mixer(game->audio.fx);
|
||||
al_destroy_mixer(game->audio.music);
|
||||
al_destroy_mixer(game->audio.voice);
|
||||
|
|
Loading…
Reference in a new issue