mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 08:47:58 +03:00
Fix memory leak in sample allocation
This commit is contained in:
parent
9e674a6a37
commit
dda0ce85a4
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ bool LoadSample(char* pointer, int compSize, int uncompSize, int index)
|
|||
|
||||
// Create actual sample
|
||||
SamplePointer[index] = BASS_SampleLoad(true, uncompBuffer, 0, cleanLength + 44, 65535, SOUND_SAMPLE_FLAGS | BASS_SAMPLE_3D);
|
||||
delete uncompBuffer;
|
||||
delete[] uncompBuffer;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue