mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
GPU, VFS, UI: Fixed minor memleaks
This commit is contained in:
parent
c2bf09744a
commit
c27481d637
3 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -261,6 +261,7 @@ BackgroundAudio::BackgroundAudio() {
|
|||
}
|
||||
|
||||
BackgroundAudio::~BackgroundAudio() {
|
||||
delete at3Reader_;
|
||||
delete[] buffer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue