Fixed some Visual Studio analyze warnings
This commit is contained in:
parent
6971a5dd1c
commit
de9566518f
3 changed files with 24 additions and 18 deletions
|
@ -162,16 +162,6 @@ WINMM_CloseDevice(_THIS)
|
|||
this->hidden->audio_sem = 0;
|
||||
}
|
||||
|
||||
if (this->hidden->hin) {
|
||||
waveInClose(this->hidden->hin);
|
||||
this->hidden->hin = 0;
|
||||
}
|
||||
|
||||
if (this->hidden->hout) {
|
||||
waveOutClose(this->hidden->hout);
|
||||
this->hidden->hout = 0;
|
||||
}
|
||||
|
||||
/* Clean up mixing buffers */
|
||||
for (i = 0; i < NUM_BUFFERS; ++i) {
|
||||
if (this->hidden->wavebuf[i].dwUser != 0xFFFF) {
|
||||
|
@ -188,6 +178,16 @@ WINMM_CloseDevice(_THIS)
|
|||
this->hidden->mixbuf = NULL;
|
||||
}
|
||||
|
||||
if (this->hidden->hin) {
|
||||
waveInClose(this->hidden->hin);
|
||||
this->hidden->hin = 0;
|
||||
}
|
||||
|
||||
if (this->hidden->hout) {
|
||||
waveOutClose(this->hidden->hout);
|
||||
this->hidden->hout = 0;
|
||||
}
|
||||
|
||||
SDL_free(this->hidden);
|
||||
this->hidden = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue