| 953 | } |
| 954 | |
| 955 | void FreeEffects() |
| 956 | { |
| 957 | int mtype, i, j, k; |
| 958 | char *file; |
| 959 | TSnd *pSnd; |
| 960 | |
| 961 | for (i = 0; i < nummtypes; i++) { |
| 962 | mtype = Monsters[i].mtype; |
| 963 | for (j = 0; j < 4; ++j) { |
| 964 | for (k = 0; k < 2; ++k) { |
| 965 | pSnd = Monsters[i].Snds[j][k]; |
| 966 | if (pSnd) { |
| 967 | Monsters[i].Snds[j][k] = NULL; |
| 968 | file = pSnd->sound_path; |
| 969 | pSnd->sound_path = NULL; |
| 970 | sound_file_cleanup(pSnd); |
| 971 | mem_free_dbg(file); |
| 972 | } |
| 973 | } |
| 974 | } |
| 975 | } |
| 976 | } |
| 977 | |
| 978 | void PlayEffect(int i, int mode) |
| 979 | { |
no test coverage detected