effect_position.c
changeset 359 83eaf245b7e7
parent 339 30996c5fd448
child 373 6271eafc6e70
     1.1 --- a/effect_position.c	Sun Jul 15 10:24:36 2007 +0000
     1.2 +++ b/effect_position.c	Sun Jul 15 15:43:02 2007 +0000
     1.3 @@ -79,6 +79,20 @@
     1.4  static position_args *pos_args_global = NULL;
     1.5  static int position_channels = 0;
     1.6  
     1.7 +void _Eff_PositionDeinit(void)
     1.8 +{
     1.9 +    int i;
    1.10 +    for (i = 0; i < position_channels; i++) {
    1.11 +        free(pos_args_array[i]);
    1.12 +    }
    1.13 +
    1.14 +    free(pos_args_global);
    1.15 +    pos_args_global = NULL;
    1.16 +    free(pos_args_array);
    1.17 +    pos_args_array = NULL;
    1.18 +}
    1.19 +
    1.20 +
    1.21  /* This just frees up the callback-specific data. */
    1.22  static void _Eff_PositionDone(int channel, void *udata)
    1.23  {