Skip to content

Commit

Permalink
position_channels wasn't reset in _Eff_PositionDeinit(), so closing t…
Browse files Browse the repository at this point in the history
…he mixer,

 restarting it, and setting a position on an arbitrary channel could
 dereference a bogus pointer.
  • Loading branch information
icculus committed Feb 4, 2008
1 parent 8ec497b commit 7a50afc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions effect_position.c
Expand Up @@ -86,6 +86,8 @@ void _Eff_PositionDeinit(void)
free(pos_args_array[i]);
}

position_channels = 0;

free(pos_args_global);
pos_args_global = NULL;
free(pos_args_array);
Expand Down

0 comments on commit 7a50afc

Please sign in to comment.