GPU, VFS, UI: Fixed minor memleaks

This commit is contained in:
German Semenov 2023-09-15 12:23:54 +03:00
parent c2bf09744a
commit c27481d637
3 changed files with 3 additions and 0 deletions

View file

@ -272,6 +272,7 @@ VFSOpenFile *ZipFileReader::OpenFileForRead(VFSFileReference *vfsReference, size
zip_stat_t zstat;
if (zip_stat_index(zip_file_, reference->zi, 0, &zstat) != 0) {
lock_.unlock();
delete openFile;
return nullptr;
}

View file

@ -713,6 +713,7 @@ VKRGraphicsPipeline *VulkanRenderManager::CreateGraphicsPipeline(VKRGraphicsPipe
if (!desc->vertexShader || !desc->fragmentShader) {
ERROR_LOG(G3D, "Can't create graphics pipeline with missing vs/ps: %p %p", desc->vertexShader, desc->fragmentShader);
delete pipeline;
return nullptr;
}

View file

@ -261,6 +261,7 @@ BackgroundAudio::BackgroundAudio() {
}
BackgroundAudio::~BackgroundAudio() {
delete at3Reader_;
delete[] buffer;
}