Skip to content

Commit

Permalink
GPU, VFS, UI: Fixed minor memleaks
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanAizek committed Sep 15, 2023
1 parent c2bf097 commit c27481d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Common/File/VFS/ZipFileReader.cpp
Expand Up @@ -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;
}

Expand Down
1 change: 1 addition & 0 deletions Common/GPU/Vulkan/VulkanRenderManager.cpp
Expand Up @@ -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;
}

Expand Down
1 change: 1 addition & 0 deletions UI/BackgroundAudio.cpp
Expand Up @@ -261,6 +261,7 @@ BackgroundAudio::BackgroundAudio() {
}

BackgroundAudio::~BackgroundAudio() {
delete at3Reader_;
delete[] buffer;
}

Expand Down

0 comments on commit c27481d

Please sign in to comment.