mirror of https://github.com/PCSX2/pcsx2.git
spu2-x:linux: Fix potential null deference
Coverity CID 146911: Dereference before null check (REVERSE_INULL)
This commit is contained in:
parent
d5e0899955
commit
7fac189ab3
|
@ -60,9 +60,11 @@ WavOutFile::WavOutFile(const char *fileName, int sampleRate, int bits, int chann
|
|||
|
||||
WavOutFile::~WavOutFile()
|
||||
{
|
||||
finishHeader();
|
||||
if (fptr) fclose(fptr);
|
||||
fptr = NULL;
|
||||
if (fptr)
|
||||
{
|
||||
finishHeader();
|
||||
fclose(fptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue