| Summary: | _EFF_PositionDeinit doesn't free memory correctly and can only be called once | ||
|---|---|---|---|
| Product: | SDL_mixer | Reporter: | Luke Kenneth Casson Leighton <lkcl> |
| Component: | misc | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 1.2.8 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
|
Description
Luke Kenneth Casson Leighton
2009-01-07 05:14:55 UTC
The current code in Subversion looks like this...
void _Eff_PositionDeinit(void)
{
int i;
for (i = 0; i < position_channels; i++) {
free(pos_args_array[i]);
}
position_channels = 0;
free(pos_args_global);
pos_args_global = NULL;
free(pos_args_array);
pos_args_array = NULL;
}
...it should give the same results.
The latest change was the addition of "position_channels = 0;" 11 months ago, but we haven't released an SDL_mixer 1.2.9 with the change.
--ryan.
|