minor memory free fix

This commit is contained in:
Respirant
2021-02-04 14:39:48 +01:00
parent 0b591c3e30
commit 826de9c404
@@ -137,8 +137,6 @@ URuntimeAudioImporterLibrary* URuntimeAudioImporterLibrary::GetUSoundWaveFromAud
}
else {
if (TranscodeAudioFileToPCMData(TCHAR_TO_ANSI(*filePath), Format, Status, framesToWrite, pSampleData, channels, sampleRate) == false) {
FMemory::Free(pSampleData);
// Callback Dispatcher OnResult
OnResult_Internal(nullptr, Status);
}